Fetching config from charmed k8s fails

Asked by Masashi Narumoto

I installed juju on Azure VM by following this instruction.
https://juju.is/docs/juju/get-started-with-juju

Then I followed this instruction to deploy charmed k8s and looks like it was deployed successfully.
https://ubuntu.com/kubernetes/docs/operations

When I try to fetch the config from the cluster, the kubeconfig file is not found in there. When I run this command, the config file contains 'config: no such file of directory'.
juju ssh kubernetes-control-plane/leader -- cat config > ~/.kube/config

I accessed the leader node via SSH but can't find the config file there. By default, it should be located in ~/.kube/config but there's no such directory or file. Can anyone unblock this issue?

Thanks,
Masashi

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

Can you help with this problem?

Provide an answer of your own, or ask Masashi Narumoto for more information if necessary.

To post a message you must log in.