Skip to content

Commit

Permalink
initialize pools with 20GB initial size
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Mar 29, 2024
1 parent 80c2003 commit eaaacf5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 }}
Expand All @@ -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 }}

0 comments on commit eaaacf5

Please sign in to comment.