1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- # Copyright 2020 Dell Technologies
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- ---
- #- name: Kick CoreDNS (this is a hack that needs to be fixed)
- #shell: kubectl get pods -n kube-system --no-headers=true | awk '/coredns/{print $1}'|xargs kubectl delete -n kube-system pod
- #tags: init
- - name: Wait for CoreDNS to restart
- shell: kubectl rollout status deployment/coredns -n kube-system
- tags: init
- - name: Deploy MetalLB
- shell: kubectl apply -f https://raw.githubusercontent.com/google/metallb/v0.8.1/manifests/metallb.yaml
- tags: init
- - name: Create MetalLB Setup Config Files
- copy: src=metal-config.yaml dest=/root/k8s/metal-config.yaml owner=root group=root mode=655
- tags: init
- - name: Create MetalLB Setup Deployment Files
- copy: src=metallb.yaml dest=/root/k8s/metallb.yaml owner=root group=root mode=655
- tags: init
- - name: Deploy MetalLB
- shell: kubectl apply -f /root/k8s/metallb.yaml
- tags: init
- - name: Create default setup for MetalLB
- shell: kubectl apply -f /root/k8s/metal-config.yaml
- tags: init
- - name: Start K8S Dashboard
- shell: kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta6/aio/deploy/recommended.yaml
- tags: init
- - name: Helm - Add Stable Repo
- shell: helm repo add stable https://kubernetes-charts.storage.googleapis.com/
- tags: init
- - name: Helm - Update Repo
- shell: helm repo update
- tags: init
- - name: Start NFS Client Provisioner
- shell: helm install stable/nfs-client-provisioner --set nfs.server=10.0.0.1 --set nfs.path=/work --generate-name
- tags: init
- - name: Set NFS-Client Provisioner as DEFAULT StorageClass
- shell: "kubectl patch storageclasses.storage.k8s.io nfs-client -p '{\"metadata\": {\"annotations\":{\"storageclass.kubernetes.io/is-default-class\":\"true\"}}}'"
- tags: init
- - name: Prometheus deployment
- shell: helm install stable/prometheus --set alertmanager.persistentVolume.storageClass=nfs-client,server.persistentVolume.storageClass=nfs-client,server.service.type=LoadBalancer --generate-name
- tags: init
- - name: Install MPI Operator
- shell: kubectl create -f https://raw.githubusercontent.com/kubeflow/mpi-operator/master/deploy/v1alpha2/mpi-operator.yaml
- tags: init
|