2022-09-03 20:47:37 +00:00
|
|
|
{{/* Define the ldap container */}}
|
|
|
|
{{- define "authentik.ldap" -}}
|
|
|
|
image: {{ .Values.ldapImage.repository }}:{{ .Values.ldapImage.tag }}
|
2022-09-05 21:07:41 +00:00
|
|
|
imagePullPolicy: {{ .Values.ldapImage.pullPolicy }}
|
2022-09-03 20:47:37 +00:00
|
|
|
securityContext:
|
|
|
|
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
|
|
|
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
runAsNonRoot: true
|
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: '{{ include "tc.common.names.fullname" . }}-ldap-secret'
|
|
|
|
- configMapRef:
|
|
|
|
name: '{{ include "tc.common.names.fullname" . }}-ldap-config'
|
|
|
|
ports:
|
2022-09-05 21:07:41 +00:00
|
|
|
- containerPort: {{ .Values.service.ldapldaps.ports.ldapldaps.targetPort }}
|
|
|
|
name: ldapldaps
|
|
|
|
- containerPort: {{ .Values.service.ldapldap.ports.ldapldap.targetPort }}
|
|
|
|
name: ldapldap
|
2022-10-01 10:54:15 +00:00
|
|
|
{{- if .Values.metrics.enabled }}
|
2022-09-05 21:07:41 +00:00
|
|
|
- containerPort: {{ .Values.service.ldapmetrics.ports.ldapmetrics.targetPort }}
|
|
|
|
name: ldapmetrics
|
|
|
|
{{- end }}
|
2022-09-03 20:47:37 +00:00
|
|
|
readinessProbe:
|
2022-09-05 21:07:41 +00:00
|
|
|
httpGet:
|
|
|
|
path: /outpost.goauthentik.io/ping
|
|
|
|
port: {{ .Values.service.ldapmetrics.ports.ldapmetrics.targetPort }}
|
2022-09-03 20:47:37 +00:00
|
|
|
initialDelaySeconds: {{ .Values.probes.readiness.spec.initialDelaySeconds }}
|
|
|
|
timeoutSeconds: {{ .Values.probes.readiness.spec.timeoutSeconds }}
|
2022-09-05 21:07:41 +00:00
|
|
|
periodSeconds: {{ .Values.probes.readiness.spec.periodSeconds }}
|
2022-09-03 20:47:37 +00:00
|
|
|
failureThreshold: {{ .Values.probes.readiness.spec.failureThreshold }}
|
|
|
|
livenessProbe:
|
2022-09-05 21:07:41 +00:00
|
|
|
httpGet:
|
|
|
|
path: /outpost.goauthentik.io/ping
|
|
|
|
port: {{ .Values.service.ldapmetrics.ports.ldapmetrics.targetPort }}
|
2022-09-03 20:47:37 +00:00
|
|
|
initialDelaySeconds: {{ .Values.probes.liveness.spec.initialDelaySeconds }}
|
|
|
|
timeoutSeconds: {{ .Values.probes.liveness.spec.timeoutSeconds }}
|
2022-09-05 21:07:41 +00:00
|
|
|
periodSeconds: {{ .Values.probes.liveness.spec.periodSeconds }}
|
2022-09-03 20:47:37 +00:00
|
|
|
failureThreshold: {{ .Values.probes.liveness.spec.failureThreshold }}
|
|
|
|
startupProbe:
|
2022-09-05 21:07:41 +00:00
|
|
|
httpGet:
|
|
|
|
path: /outpost.goauthentik.io/ping
|
|
|
|
port: {{ .Values.service.ldapmetrics.ports.ldapmetrics.targetPort }}
|
2022-09-03 20:47:37 +00:00
|
|
|
initialDelaySeconds: {{ .Values.probes.startup.spec.initialDelaySeconds }}
|
|
|
|
timeoutSeconds: {{ .Values.probes.startup.spec.timeoutSeconds }}
|
2022-09-05 21:07:41 +00:00
|
|
|
periodSeconds: {{ .Values.probes.startup.spec.periodSeconds }}
|
2022-09-03 20:47:37 +00:00
|
|
|
failureThreshold: {{ .Values.probes.startup.spec.failureThreshold }}
|
|
|
|
{{- end -}}
|