X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Fxapp-onboarder%2Ftemplates%2Fdeployment.yaml;h=cd8e2f7afb629bcc06768c7e16e04d17e9beb9d6;hb=8371333fe26e50f8c2bf37b70e9e96af22116e82;hp=c7d13909ddc2759e6db763665d4128379a0818d6;hpb=276a64e770e29b52effcb0fc224b94c8e324e5b2;p=ric-plt%2Fric-dep.git diff --git a/helm/xapp-onboarder/templates/deployment.yaml b/helm/xapp-onboarder/templates/deployment.yaml index c7d1390..cd8e2f7 100644 --- a/helm/xapp-onboarder/templates/deployment.yaml +++ b/helm/xapp-onboarder/templates/deployment.yaml @@ -41,6 +41,10 @@ spec: release: {{ .Release.Name }} spec: hostname: {{ include "common.name.xapp-onboarder" . }} + securityContext: + fsGroup: 0 + runAsUser: 0 + restartPolicy: Always imagePullSecrets: {{- $newctx := dict "ctx" $ "defaultregistry" .Values.xapponboarder.image.xapponboarder.registry }} - name: {{ include "common.dockerregistry.credential" $newctx }} @@ -50,9 +54,6 @@ spec: image: {{ include "common.dockerregistry.url" $newctx }}/{{ .Values.xapponboarder.image.chartmuseum.name }}:{{ .Values.xapponboarder.image.chartmuseum.tag }} {{- $newctx := dict "ctx" $ "defaultpullpolicy" .Values.xapponboarder.imagePullPolicy }} imagePullPolicy: {{ include "common.dockerregistry.pullpolicy" $newctx }} - securityContext: - fsGroup: 0 - runAsUser: 0 envFrom: - configMapRef: name: {{ include "common.configmapname.xapp-onboarder" . }}-chartmuseum-env @@ -72,6 +73,8 @@ spec: envFrom: - configMapRef: name: {{ include "common.configmapname.xapp-onboarder" . }}-env + - configMapRef: + name: {{ include "common.configmapname.dbaas" . }}-appconfig livenessProbe: #exec: # command: @@ -84,4 +87,3 @@ spec: # httpGet: # path: / # port: http - restartPolicy: Always