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

Support kubeconfig chaining etc. for onprem #18

Open
wosc opened this issue Dec 20, 2019 · 1 comment
Open

Support kubeconfig chaining etc. for onprem #18

wosc opened this issue Dec 20, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@wosc
Copy link

wosc commented Dec 20, 2019

It would be nice if isopod supported
a) assuming a default of $HOME/.kube/config (I have to explicitly pass that as -kubeconfig=, else I get Failed to build kube rest config for k8s vendor <onprem: {}>)
b) reading the $KUBECONFIG environment variable
c) chaining several kube config files (e.g. define clusters/contexts in $HOME/.kube/config, then select the current-context in a project-local config file)

@cxuu
Copy link
Contributor

cxuu commented Jan 2, 2020

I think your point a) and b) are straightforward and reasonable. I will make an internal ticket.

For point c), we actually made the conscious decision to move away from the current cluster context in kubeconfig file. Isopod targets multiple clusters and allows the users the select a subset of them with a custom implementation of the clusters() function in main.ipd. Using current-context can be error-prone, because from our prior experience, users could easily forget to set it before rollout or unset it after rollout. Set/unset is necessary since we are targeting multiple clusters.

To summarize, Isopod uses kubeconfig file only for authentication to on-prem clusters, not for cluster selection or other managed k8s offerings (because we do not want to manage token renewal).

@cxuu cxuu added the enhancement New feature or request label Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants