aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2019-06-24 21:10:50 -0400
committerTaka Cho <takamune.cho@att.com>2019-06-24 21:13:28 -0400
commit31eb245f1251fa77d2b1fd51a7fea96f428bf7bf (patch)
tree6a8fd784d7d342cdb8824c8d081822c17e8835bb /kubernetes
parent422d76001f0f5832fdb89d32c5a09ea5e2d60ae5 (diff)
Change Daexim directory ownership
In k8s env, daexim has to be changed to 100:101 Issue-ID: APPC-1627 Change-Id: Iea20a6b3b8cf14a09ca5fc52aa3d6a71534acaaa Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/appc/templates/statefulset.yaml12
-rw-r--r--kubernetes/appc/values.yaml2
2 files changed, 10 insertions, 4 deletions
diff --git a/kubernetes/appc/templates/statefulset.yaml b/kubernetes/appc/templates/statefulset.yaml
index 6677516990..4965cb1d9a 100644
--- a/kubernetes/appc/templates/statefulset.yaml
+++ b/kubernetes/appc/templates/statefulset.yaml
@@ -32,10 +32,9 @@ spec:
app: {{ include "common.name" . }}
release: {{ .Release.Name }}
spec:
- imagePullSecrets:
- - name: "{{ include "common.namespace" . }}-docker-registry-key"
initContainers:
- - command:
+ - name: {{ include "common.name" . }}-readiness
+ command:
- /root/ready.py
args:
- --container-name
@@ -48,7 +47,12 @@ spec:
fieldPath: metadata.namespace
image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
- name: {{ include "common.name" . }}-readiness
+ - name: {{ include "common.name" . }}-chown
+ image: "busybox"
+ command: ["sh", "-c", "chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.persistence.mdsalPath }}"]
+ volumeMounts:
+ - mountPath: {{ .Values.persistence.mdsalPath }}
+ name: {{ include "common.fullname" . }}-data
containers:
- name: {{ include "common.name" . }}
image: "{{ include "common.repository" . }}/{{ .Values.image }}"
diff --git a/kubernetes/appc/values.yaml b/kubernetes/appc/values.yaml
index a19b67d802..6fa7e65ca6 100644
--- a/kubernetes/appc/values.yaml
+++ b/kubernetes/appc/values.yaml
@@ -39,6 +39,8 @@ debugEnabled: false
# application configuration
config:
+ odlUid: 100
+ odlGid: 101
ansibleServiceName: appc-ansible-server
ansiblePort: 8000
mariadbRootPassword: secretpassword