40 lines
1.7 KiB
Smarty
40 lines
1.7 KiB
Smarty
{{/* 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.v1.common.names.fullname" . }}-common-secret'
|
|
- secretRef:
|
|
name: '{{ include "tc.v1.common.names.fullname" . }}-exporter-secret'
|
|
- secretRef:
|
|
name: '{{ include "tc.v1.common.names.fullname" . }}-backend-exporter-secret'
|
|
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 }}
|