{{/* Define the imaginary container */}} {{- define "nextcloud.imaginary" -}} image: {{ .Values.imaginaryImage.repository }}:{{ .Values.imaginaryImage.tag }} imagePullPolicy: '{{ .Values.image.pullPolicy }}' securityContext: runAsUser: 33 runAsGroup: 33 readOnlyRootFilesystem: true runAsNonRoot: true ports: - containerPort: 9090 args: ["-enable-url-source"] env: - name: 'PORT' value: '9090' readinessProbe: httpGet: path: / port: 9090 initialDelaySeconds: {{ .Values.probes.readiness.spec.initialDelaySeconds }} periodSeconds: {{ .Values.probes.readiness.spec.periodSeconds }} timeoutSeconds: {{ .Values.probes.readiness.spec.timeoutSeconds }} failureThreshold: {{ .Values.probes.readiness.spec.failureThreshold }} livenessProbe: httpGet: path: / port: 9090 initialDelaySeconds: {{ .Values.probes.liveness.spec.initialDelaySeconds }} periodSeconds: {{ .Values.probes.liveness.spec.periodSeconds }} timeoutSeconds: {{ .Values.probes.liveness.spec.timeoutSeconds }} failureThreshold: {{ .Values.probes.liveness.spec.failureThreshold }} startupProbe: httpGet: path: / port: 9090 initialDelaySeconds: {{ .Values.probes.startup.spec.initialDelaySeconds }} periodSeconds: {{ .Values.probes.startup.spec.periodSeconds }} timeoutSeconds: {{ .Values.probes.startup.spec.timeoutSeconds }} failureThreshold: {{ .Values.probes.startup.spec.failureThreshold }} {{- end -}}