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

can't merge kube config #9

Closed
andyjeffries opened this issue Jul 5, 2020 · 5 comments
Closed

can't merge kube config #9

andyjeffries opened this issue Jul 5, 2020 · 5 comments
Assignees

Comments

@andyjeffries
Copy link
Contributor

Using the cli command

civo k3s config cluster-name --save --merge

don't work and returns an error:

Error: Saving the cluster config failed with could not merge kubeconfigs: exit status 1

(from civo/kube100#36)

@alejandrojnm
Copy link
Member

alejandrojnm commented Jul 5, 2020

Hi @athospg, Could you tell me what OS you use, and how to reproduce the error, i tested and don't get that error.

civo@tes-cli:/root$ civo kubernetes config test --save --merge
Merged with main kubernetes config: /home/civo/.kube/config

Access your cluster with:
kubectl config use-context test
kubectl get node

@athospg
Copy link

athospg commented Jul 18, 2020

Sorry for the extremely late response, the command works fine on Linux, but it fails if run from windows.

Edit (more details):
Running using windows cmd:

Merged with main kubernetes config: ←[32mC:\Users\athos/.kube/config←[0m
Error: Saving the cluster config failed with could not merge kubeconfigs: exit status 1

Running with PowerShell (7.0.2 and windows version):

Merged with main kubernetes config: C:\Users\athos/.kube/config
Error: Saving the cluster config failed with could not merge kubeconfigs: exit status 1

@alejandrojnm
Copy link
Member

@athospg i will check this, what version of windows are you using?

@alejandrojnm
Copy link
Member

Hi @athospg, the solution is almost ready, so that --merge works in windows, both using cmd and powershell

@athospg
Copy link

athospg commented Jul 19, 2020

Windows 10 - v2004 - compilation 19041.388

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

No branches or pull requests

3 participants