Skip to content

Integrate with Kubernetes #22

Closed
Closed

Description

@mraerino

Someone at a meetup lately suggested it would be cool to be able to start containers on Kubernetes so blackbox tests of containers can be done using standard test libraries.

Since this library is in an early state, it would be a great opportunity to abstract the container layer in such a way that it does not matter whether the Docker or Kubernetes APIs are used.

Activity

  1. gianarb commented on Nov 23, 2018

    @gianarb
    Member

    Yep, this is a good idea, I think we should create a Container interface with the current functions we implemented in the container like:

    type Container interface{
         Terminate(ctx context.Context, t *testing.T) error
         LivenessCheckPorts(ctx context.Context) (nat.PortSet, error) 
         GetIPAddress(ctx context.Context) (string, error)
         GetHostEndpoint(ctx context.Context, port string) (string, string, error)
    }

    And we can have a new file kubernetes.go that implements that interface with a function RunPod (it should return a container just like RunContainer but via kubernetes (a pod).

    Nice idea! I don't think this is a top priority btw. For example, I am using this library in a project and we use Jenkins to run tests against kubernetes but we use Docker in Docker. I am not sure about the benefits of having the ability to run pods directly. What do you think?

  2. mraerino commented on Nov 23, 2018

    @mraerino
    ContributorAuthor

    That sounds great!

  3. mraerino commented on Nov 25, 2018

    @mraerino
    ContributorAuthor

    The foundation for this has been laid in #36

  4. rnorth commented on Nov 26, 2018

    @rnorth
    Member

    This is probably something we should do with the Java implementation and other forks, at the right time. Please could we discuss the general approach to tackling this?

    I can't think of anything specific, but it would be good for all the implementations to be gradually moving towards convergence on feature sets rather than divergence 😄 .

  5. gianarb commented on Nov 26, 2018

    @gianarb
    Member
  6. mdelapenya commented on Aug 25, 2022

    @mdelapenya
    Member

    I think it makes sense to move this thread to Discussions

  7. locked and limited conversation to collaborators on Aug 25, 2022
  8. converted this issue into a discussion #510 on Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions