2022-12-24 12:47:56 +00:00
|
|
|
{{/* Define the exporter container */}}
|
|
|
|
{{- define "penpot.exporter" -}}
|
|
|
|
image: {{ .Values.exporterImage.repository }}:{{ .Values.exporterImage.tag }}
|
|
|
|
imagePullPolicy: '{{ .Values.exporterImage.pullPolicy }}'
|
|
|
|
securityContext:
|
|
|
|
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
|
|
|
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
|
|
|
readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }}
|
|
|
|
runAsNonRoot: {{ .Values.securityContext.runAsNonRoot }}
|
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: '{{ include "tc.common.names.fullname" . }}-common-secret'
|
|
|
|
- secretRef:
|
|
|
|
name: '{{ include "tc.common.names.fullname" . }}-exporter-secret'
|
2022-12-24 20:34:23 +00:00
|
|
|
- secretRef:
|
|
|
|
name: '{{ include "tc.common.names.fullname" . }}-backend-exporter-secret'
|
2022-12-24 12:47:56 +00:00
|
|
|
readinessProbe:
|
|
|
|
tcpSocket:
|
|
|
|
port: 6061
|
|
|
|
initialDelaySeconds: {{ .Values.probes.readiness.spec.initialDelaySeconds }}
|
|
|
|
timeoutSeconds: {{ .Values.probes.readiness.spec.timeoutSeconds }}
|
|
|
|
periodSeconds: {{ .Values.probes.readiness.spec.periodSeconds }}
|
|
|
|
failureThreshold: {{ .Values.probes.readiness.spec.failureThreshold }}
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
tcpSocket:
|
|
|
|
port: 6061
|
|
|
|
initialDelaySeconds: {{ .Values.probes.liveness.spec.initialDelaySeconds }}
|
|
|
|
timeoutSeconds: {{ .Values.probes.liveness.spec.timeoutSeconds }}
|
|
|
|
periodSeconds: {{ .Values.probes.liveness.spec.periodSeconds }}
|
|
|
|
failureThreshold: {{ .Values.probes.liveness.spec.failureThreshold }}
|
|
|
|
startupProbe:
|
|
|
|
tcpSocket:
|
|
|
|
port: 6061
|
|
|
|
initialDelaySeconds: {{ .Values.probes.startup.spec.initialDelaySeconds }}
|
|
|
|
timeoutSeconds: {{ .Values.probes.startup.spec.timeoutSeconds }}
|
|
|
|
periodSeconds: {{ .Values.probes.startup.spec.periodSeconds }}
|
|
|
|
failureThreshold: {{ .Values.probes.startup.spec.failureThreshold }}
|
|
|
|
{{- end }}
|