This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/helm/templates/static-deployment.yaml

58 lines
1.8 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
2020-12-05 21:08:42 +00:00
name: {{ include "authentik.fullname" . }}-static
labels:
2020-12-05 21:08:42 +00:00
app.kubernetes.io/name: {{ include "authentik.name" . }}
helm.sh/chart: {{ include "authentik.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
2020-12-05 21:08:42 +00:00
k8s.goauthentik.io/component: static
spec:
selector:
matchLabels:
2020-12-05 21:08:42 +00:00
app.kubernetes.io/name: {{ include "authentik.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
2020-12-05 21:08:42 +00:00
k8s.goauthentik.io/component: static
template:
metadata:
labels:
2020-12-05 21:08:42 +00:00
app.kubernetes.io/name: {{ include "authentik.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
2020-12-05 21:08:42 +00:00
k8s.goauthentik.io/component: static
spec:
containers:
- name: {{ .Chart.Name }}-static
image: "{{ .Values.image.name_static }}:{{ .Values.image.tag }}"
imagePullPolicy: "{{ .Values.image.pullPolicy }}"
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
initialDelaySeconds: 10
timeoutSeconds: 5
httpGet:
path: /
port: http
readinessProbe:
initialDelaySeconds: 10
timeoutSeconds: 5
httpGet:
path: /
port: http
resources:
requests:
cpu: 10m
memory: 10M
limits:
cpu: 20m
memory: 20M
volumeMounts:
2020-12-05 21:08:42 +00:00
- name: authentik-uploads
mountPath: /usr/share/nginx/html/media
volumes:
2020-12-05 21:08:42 +00:00
- name: authentik-uploads
persistentVolumeClaim:
2020-12-05 21:08:42 +00:00
claimName: {{ include "authentik.fullname" . }}-uploads