From ed3a4d085c77594aa40701857a4d4882044cafd6 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Tue, 8 Feb 2022 14:53:24 +1300 Subject: [PATCH] Add cloud init file --- cloud-init.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 cloud-init.yaml diff --git a/cloud-init.yaml b/cloud-init.yaml new file mode 100644 index 0000000..665bb93 --- /dev/null +++ b/cloud-init.yaml @@ -0,0 +1,26 @@ +#cloud-config + +packages: + - fish + - git + +snap: + commands: + - ["install", "microk8s", "--classic"] + - ["install", "kubectl", "--classic"] + + + +system_info: + default_user: + name: ubuntu + shell: /usr/bin/fish + home: /home/ubuntu + groups: microk8s + +runcmd: + - mkdir -p /home/ubuntu/.kube /home/ubuntu/.config/fish/completions + - microk8s config > /home/ubuntu/.kube/config + - kubectl completion fish > /home/ubuntu/.config/fish/completions/kubectl.fish + - chown -R ubuntu:ubuntu /home/ubuntu/.kube /home/ubuntu/.config/fish/completions + - microk8s enable dns ingress dashboard helm helm3 \ No newline at end of file