Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate if we should switch from kubectl commands to API calls #25

Open
inercia opened this issue Jul 29, 2019 · 0 comments
Open

Evaluate if we should switch from kubectl commands to API calls #25

inercia opened this issue Jul 29, 2019 · 0 comments

Comments

@inercia
Copy link
Owner

inercia commented Jul 29, 2019

We are currenlty running all the kubectl commands remotely: we upload a valid kubeconfig to the remote host and then run kubectl with that file. This makes things easier in some scenarios, like when the API server is not directly reachable from the machine where Terraform is being run.

However, this is also cumbersome and limits the possibilities for the future. For example, for applying some manifest, we must 1) generate a manifest file 2) upload it to the remote host 3) upload the kubeconfig 4) run kubectl apply in the remote machine 5) delete all these files. This could be straightforward if we could just use the kubernetes client-go and access the API server from the local machine.

And we can think on more complex scenarios in the future, like the creation of machine descriptions for Cluster API and so on...

So we should evaluate if it is really worth keeping the remote kubectl commands or just switch to API accesses...

@inercia inercia closed this as completed Aug 17, 2019
@inercia inercia reopened this Aug 18, 2019
@inercia inercia closed this as completed Aug 19, 2019
@inercia inercia reopened this Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant