k8s/cloud-init.yaml

23 lines
546 B
YAML
Raw Normal View History

2022-02-08 01:53:24 +00:00
#cloud-config
packages:
- fish
- git
snap:
commands:
- ["install", "microk8s", "--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
2022-02-09 00:32:32 +00:00
- snap alias microk8s.kubectl kubectl
2022-02-08 01:53:24 +00:00
- kubectl completion fish > /home/ubuntu/.config/fish/completions/kubectl.fish
2022-02-08 10:33:04 +00:00
- chown -R ubuntu:ubuntu /home/ubuntu/.kube /home/ubuntu/.config/fish
2022-02-08 01:53:24 +00:00
- microk8s enable dns ingress dashboard helm helm3