kubeconfig file copy issue fix 43/4043/1
authorSrinivasan <srinivasan.s.n@huawei.com>
Thu, 7 Jan 2021 06:52:21 +0000 (12:22 +0530)
committerSrinivasan <srinivasan.s.n@huawei.com>
Thu, 7 Jan 2021 06:53:02 +0000 (12:23 +0530)
Signed-off-by: Srinivasan <srinivasan.s.n@huawei.com>
Change-Id: Ibe45a2836176d6a8a9b3c0bb7862370936975407

ocd/infra/playbooks/roles/kubeconfig/tasks/install.yml

index 53ad150..b6762ce 100644 (file)
   debug:
     msg: transfering config file to OCD Host
 
+- name: access k8s from ocd using config file copy from center or edge
+  fetch:
+    src: /root/.kube/config
+    dest: /root/.kube/config
+    flat: yes
+
 - name: Fetch the file from the controller and edge nodes to ocd-host
   fetch:
     src: /root/.kube/config