diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2024-05-14 05:16:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-05-14 05:16:18 +0000 |
commit | 65656b526ecb6bcb8f6113ecaee2194d3235ac6c (patch) | |
tree | 68b60dd0544c980f84d19a5868eebfd7f5576903 /kubernetes/common/mongodb/templates/replicaset/statefulset.yaml | |
parent | 82b27e69e7afec851802ff3fcfab435df3ef0291 (diff) | |
parent | d2b2a3d446a92910fcf3be4c6a3b4254451f730c (diff) |
Merge "[COMMON] Fix Kyverno policy violations in common/mongodb"
Diffstat (limited to 'kubernetes/common/mongodb/templates/replicaset/statefulset.yaml')
-rw-r--r-- | kubernetes/common/mongodb/templates/replicaset/statefulset.yaml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/kubernetes/common/mongodb/templates/replicaset/statefulset.yaml b/kubernetes/common/mongodb/templates/replicaset/statefulset.yaml index 55158e8fb0..b171eca005 100644 --- a/kubernetes/common/mongodb/templates/replicaset/statefulset.yaml +++ b/kubernetes/common/mongodb/templates/replicaset/statefulset.yaml @@ -512,7 +512,8 @@ spec: {{- end }} volumes: - name: empty-dir - emptyDir: {} + emptyDir: + sizeLimit: 64Mi - name: common-scripts configMap: name: {{ printf "%s-common-scripts" (include "mongodb.fullname" .) }} @@ -529,7 +530,8 @@ spec: {{- end }} {{- if and .Values.externalAccess.enabled .Values.externalAccess.autoDiscovery.enabled (eq .Values.externalAccess.service.type "LoadBalancer") }} - name: shared - emptyDir: {} + emptyDir: + sizeLimit: 64Mi {{- end }} - name: scripts configMap: @@ -540,7 +542,8 @@ spec: {{- end }} {{- if .Values.tls.enabled }} - name: certs - emptyDir: {} + emptyDir: + sizeLimit: 64Mi {{- if (include "mongodb.autoGenerateCerts" .) }} - name: certs-volume secret: @@ -566,8 +569,10 @@ spec: {{- if .Values.persistence.medium }} emptyDir: medium: {{ .Values.persistence.medium | quote }} + sizeLimit: 64Mi {{- else }} - emptyDir: {} + emptyDir: + sizeLimit: 64Mi {{- end }} {{- else }} {{- if .Values.persistentVolumeClaimRetentionPolicy.enabled }} |