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

civo kubernetes config fails when .kube directory does not exist #27

Closed
mladedav opened this issue Sep 7, 2020 · 2 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@mladedav
Copy link

mladedav commented Sep 7, 2020

I encountered it in a github runner for CI where this can be fairly common issue. Creating $HOME/.kube directory beforehand solves the issue.

The command fails with:

Error: open /home/runner/.kube/config: no such file or directory
Error: Saving the cluster config failed with open /home/runner/.kube/config: no such file or directory

Access your cluster with:
kubectl get node
@alejandrojnm
Copy link
Member

Hi @mladedav you need run this first

 - name: Make config folder
    run: mkdir ~/.kube

- name: Save our cluster's authentication details
   run: >
         civo k3s config my-site --save
        --local-path ~/.kube/config -y

@mladedav
Copy link
Author

Hi, yes I solved it the same way, but I think it would be better if the command created any standard directories it needs. This is very minor issue but I think it would ease the usage a bit.

@alejandrojnm alejandrojnm self-assigned this Sep 18, 2020
@alejandrojnm alejandrojnm added the enhancement New feature or request label Sep 18, 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
Projects
None yet
Development

No branches or pull requests

2 participants