Modified files for k3s and helmplugin 02/3502/3
authorabhijit_onap <abhijit.das.gupta@huawei.com>
Fri, 22 May 2020 12:57:32 +0000 (18:27 +0530)
committerGaurav Agrawal <gaurav.agrawal@huawei.com>
Fri, 22 May 2020 15:45:30 +0000 (15:45 +0000)
Files modified :
k3s ansible playbook - to handle interface issue
helmpulgin k8s deployment yaml file

Repatching after execution of yamllint

Signed-off-by: abhijit_onap <abhijit.das.gupta@huawei.com>
Change-Id: I43a5b0e824cb99c85f9e4620a2ddba407dc759ae

ocd/infra/playbooks/roles/applcm/files/deploy/helm-plugin-deployment.yaml
ocd/infra/playbooks/roles/k3s/tasks/install.yml

index c87b5e6..ae24fe8 100644 (file)
@@ -69,7 +69,6 @@ spec:
         - name: config-dir
           hostPath:
             path: /kubeconfig
-            type: DirectoryOrCreate
 status: {}
 
 # yamllint enable
index 0aaa7bd..5759241 100644 (file)
   register: ifName
   when: result is failed
 
+# yamllint disable rule:line-length
 - name: install k3s
   shell:
-    cmd: curl -sfL https://get.k3s.io | sh -
+    cmd: curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--node-ip={{ ansible_host }} --node-external-ip={{ ansible_host }} --bind-address={{ ansible_host }} --flannel-iface=eth0 --docker --no-deploy=servicelb --no-deploy=traefik --write-kubeconfig-mode 644 --kube-apiserver-arg="service-node-port-range=30000-36000"" sh -
   when: result is failed
 
+# yamllint disable rule:line-length
+
+#- name: install k3s
+# shell:
+#    cmd: curl -sfL https://get.k3s.io | sh -
+#  when: result is failed
+
 - name: create .kube dir
   shell:
     cmd: mkdir -p $HOME/.kube/