26 lines
598 B
YAML
26 lines
598 B
YAML
#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
|
|
- microk8s enable dns ingress dashboard helm helm3 |