Skip to content
Snippets Groups Projects
Verified Commit 5b87d2bc authored by Gregor Krmelj's avatar Gregor Krmelj
Browse files

fix microk8s kubectl not working after install

This is caused when the .kube dir does not exist and copying
the kube config file fails during installation of microk8s.
parent 229fab03
No related branches found
No related tags found
1 merge request!1fix microk8s kubectl not working after install
......@@ -3,10 +3,9 @@ set -x
# create new microk8s instance
sudo snap install microk8s --classic --channel=1.18/stable
mkdir -p ~/.kube
sudo microk8s config > ~/.kube/config
sudo usermod -a -G microk8s $USER
sudo chown -f -R $USER ~/.kube
echo Exit and log in again
echo "Exit and log in again"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment