alias kubectl

This commit is contained in:
Jimmy 2022-02-08 23:33:56 +13:00
parent abfc7ef8c9
commit 8962d42a81
1 changed files with 1 additions and 4 deletions

View File

@ -7,9 +7,6 @@ packages:
snap: snap:
commands: commands:
- ["install", "microk8s", "--classic"] - ["install", "microk8s", "--classic"]
- ["install", "kubectl", "--classic"]
system_info: system_info:
default_user: default_user:
@ -20,7 +17,7 @@ system_info:
runcmd: runcmd:
- mkdir -p /home/ubuntu/.kube /home/ubuntu/.config/fish/completions - 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 - kubectl completion fish > /home/ubuntu/.config/fish/completions/kubectl.fish
- chown -R ubuntu:ubuntu /home/ubuntu/.kube /home/ubuntu/.config/fish - chown -R ubuntu:ubuntu /home/ubuntu/.kube /home/ubuntu/.config/fish
- microk8s enable dns ingress dashboard helm helm3 - microk8s enable dns ingress dashboard helm helm3