From: agrawalgaurav Date: Mon, 18 May 2020 18:11:44 +0000 (+0530) Subject: Shared volume to store kubeconfig X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;ds=sidebyside;h=refs%2Fchanges%2F83%2F3483%2F1;p=ealt-edge.git Shared volume to store kubeconfig Change-Id: I40489883896863cd22b4ecd653d4e07e974060ef --- diff --git a/mecm/mepm/applcm/resources/deployment/db-deployment.yaml b/mecm/mepm/applcm/resources/deployment/db-deployment.yaml index b65dcd7..3d75520 100644 --- a/mecm/mepm/applcm/resources/deployment/db-deployment.yaml +++ b/mecm/mepm/applcm/resources/deployment/db-deployment.yaml @@ -64,6 +64,7 @@ spec: - name: my-db hostPath: path: /data + type: DirectoryOrCreate status: {} # yamllint enable diff --git a/mecm/mepm/applcm/resources/deployment/helm-plugin-deployment.yaml b/mecm/mepm/applcm/resources/deployment/helm-plugin-deployment.yaml index c7fac0d..c87b5e6 100644 --- a/mecm/mepm/applcm/resources/deployment/helm-plugin-deployment.yaml +++ b/mecm/mepm/applcm/resources/deployment/helm-plugin-deployment.yaml @@ -60,9 +60,16 @@ spec: ports: - containerPort: 50051 resources: {} + volumeMounts: + - mountPath: /go/release/kubeconfig/ + name: config-dir restartPolicy: Always serviceAccountName: "" - volumes: null + volumes: + - name: config-dir + hostPath: + path: /kubeconfig + type: DirectoryOrCreate status: {} # yamllint enable