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