main.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. - name: Deploy MetalLB
  3. shell: kubectl apply -f https://raw.githubusercontent.com/google/metallb/v0.8.1/manifests/metallb.yaml
  4. tags: init
  5. - name: Create MetalLB Setup Config Files
  6. copy: src=metal-config.yaml dest=/root/k8s/metal-config.yaml owner=root group=root mode=655
  7. tags: init
  8. - name: Create MetalLB Setup Deployment Files
  9. copy: src=metallb.yaml dest=/root/k8s/metallb.yaml owner=root group=root mode=655
  10. tags: init
  11. - name: Deploy MetalLB
  12. shell: kubectl apply -f /root/k8s/metallb.yaml
  13. tags: init
  14. - name: Create default setup for MetalLB
  15. shell: kubectl apply -f /root/k8s/metal-config.yaml
  16. tags: init
  17. - name: Helm - create service account
  18. shell: kubectl create serviceaccount --namespace kube-system tiller
  19. tags: init
  20. - name: Helm - create cluster role Binding
  21. shell: kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
  22. tags: init
  23. - name: Helm - init
  24. shell: helm init --upgrade
  25. tags: init
  26. - name: Start K8S Dashboard
  27. shell: kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta6/aio/deploy/recommended.yaml
  28. tags: init