From eaaacf5d9edcceaa88e3316078206544eab2d828 Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Fri, 29 Mar 2024 19:05:28 +0100 Subject: [PATCH] initialize pools with 20GB initial size --- templates/pool.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/pool.yaml b/templates/pool.yaml index 2dd6659..cf53d30 100644 --- a/templates/pool.yaml +++ b/templates/pool.yaml @@ -14,6 +14,8 @@ spec: labels: app: pool-{{ . }} spec: + securityContext: + fsGroup: 1000 containers: - name: pool image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag | default $.Chart.AppVersion }}" @@ -39,6 +41,8 @@ spec: - name: certs-store-{{ . }} mountPath: /etc/grid-security readOnly: true + - name: pool-data + mountPath: /pool initContainers: {{ $host := print $.Release.Name "-pool-" . "-svc." $.Release.Namespace ".svc.cluster.local" -}} {{ include "dcache.certs.init" $host }} @@ -53,5 +57,13 @@ spec: - name: certs-store-{{ . }} persistentVolumeClaim: claimName: {{ $.Release.Name }}-pool-{{ . }}-certs-store + volumeClaimTemplates: + - metadata: + name: pool-data + spec: + accessModes: [ "ReadWriteOnce" ] + resources: + requests: + storage: 20Gi --- {{- end }}