diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-10-12 05:59:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-10-12 05:59:02 +0000 |
commit | e1d12cb0768338e19c450924e705c829f5d77571 (patch) | |
tree | fc6623e91e6370939ee592a5183abc3af567d6b0 /kubernetes/common/timescaledb/templates/statefulset.yaml | |
parent | fb34105beb50d9212c51e9fb75d144b271346f1c (diff) | |
parent | bc6eede10e56306f9108ad3b9ba9771743020727 (diff) |
Merge "[COMMON] Add limits to timescale db"
Diffstat (limited to 'kubernetes/common/timescaledb/templates/statefulset.yaml')
-rw-r--r-- | kubernetes/common/timescaledb/templates/statefulset.yaml | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/kubernetes/common/timescaledb/templates/statefulset.yaml b/kubernetes/common/timescaledb/templates/statefulset.yaml index 435c925eb2..0bd7d30478 100644 --- a/kubernetes/common/timescaledb/templates/statefulset.yaml +++ b/kubernetes/common/timescaledb/templates/statefulset.yaml @@ -29,25 +29,10 @@ spec: metadata: {{- include "common.templateMetadata" . | nindent 6 }} spec: serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . ) }} - securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} - initContainers: - - name: chowm-mount-path - command: - - /bin/sh - args: - - -c - - chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.runAsGroup }} /var/lib/postgresql/data - image: {{ include "repositoryGenerator.image.busybox" . }} - imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} - volumeMounts: - - mountPath: /var/lib/postgresql/data - name: {{ include "common.fullname" . }} + {{ include "common.podSecurityContext" . | indent 10 | trim}} containers: - name: {{ include "common.name" . }} image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }} - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} imagePullPolicy: {{ .Values.pullPolicy }} ports: {{ include "common.containerPorts" . | nindent 12 }} livenessProbe: |