From 8962d42a81160cc8b8694be8b64c5fb598a3eb49 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Tue, 8 Feb 2022 23:33:56 +1300 Subject: [PATCH] alias kubectl --- cloud-init.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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