Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Proposal: include kubectl on the image #22

Closed
krancour opened this issue Mar 14, 2016 · 1 comment
Closed

Proposal: include kubectl on the image #22

krancour opened this issue Mar 14, 2016 · 1 comment
Assignees
Labels

Comments

@krancour
Copy link
Contributor

I'll grant that the need for this isn't immediately obvious, but I think I can cite some defensible reasons for it...

I've been investigating how best to enable functional and integration tests for the router. These really cannot be accomplished without a k8s cluster to test against, so I have also investigated what it would take to run a containerized k8s cluster. It's not that hard to do, but there are certain difficulties one encounters. See deis/router#140 for some discussion of that. One such difficulty is that the k8s apiserver only binds to localhost:8080 on the docker host (not 0.0.0.0:8080). This can be problematic for anyone using docker-machine as their docker host is essentially remote and their kubectl client would be unable to talk to the apiserver.

By including the kubectl binary in the containerized development environment, any test targets or other processes that must manipulate the containerized k8s test cluster could also be containerized, and in the case of anyone running docker-machine, this moves these processes to the "remote" docker host where the fact that the apiserver is bound to localhost:8080 is no longer a problem because it's accessible.

Including kubectl in the dev environment isn't any kind of magic bullet, but it's a good step toward making these sort of tests more feasible at the component level.

I'm interested to know what others think about possibly including kubectl.

@krancour krancour self-assigned this Mar 14, 2016
@krancour
Copy link
Contributor Author

krancour commented Nov 1, 2016

Glad to see this closed. (I should have done so some time ago.) I no longer believe that we need this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants