Score:-3

How do I solve "cp: cannot stat '/etc/kubernetes/admin.conf': No such file or directory"?

kr flag

I'm getting this error

$ cp /etc/kubernetes/admin.conf $HOME/
cp: cannot stat '/etc/kubernetes/admin.conf': No such file or directory

How can I solve it?

kanehekili avatar
zw flag
Welcome to Ubuntu. You should check [here](https://askubuntu.com/help/how-to-ask) on how to ask questions, since no one knows what you did before, which operating system you have etc.
karel avatar
sa flag
Please edit your question and add the results of `kubeadm config print --kubeconfig string`
Score:3
cn flag

The error is that a file you try to copy does not exist. The file you indicated is /etc/kubernetes/admin.conf. The error indicates that file does not exist.

To solve the problem, make sure you copy a file that is existing. If you want to copy a specific file, check that the file path you specify is accurate.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.