diff --git a/cloud-init.yaml b/cloud-init.yaml index 2b6494c..1319f1a 100644 --- a/cloud-init.yaml +++ b/cloud-init.yaml @@ -7,9 +7,6 @@ packages: snap: commands: - ["install", "microk8s", "--classic"] - - ["install", "kubectl", "--classic"] - - system_info: default_user: @@ -20,7 +17,7 @@ system_info: runcmd: - mkdir -p /home/ubuntu/.kube /home/ubuntu/.config/fish/completions - - microk8s config > /home/ubuntu/.kube/config + - microk8s alias microk8s.kubectl kubectl - kubectl completion fish > /home/ubuntu/.config/fish/completions/kubectl.fish - chown -R ubuntu:ubuntu /home/ubuntu/.kube /home/ubuntu/.config/fish - microk8s enable dns ingress dashboard helm helm3 \ No newline at end of file