55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: authelia
|
||
|
namespace: authelia
|
||
|
labels:
|
||
|
app: authelia
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: authelia
|
||
|
strategy:
|
||
|
type: Recreate
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: authelia
|
||
|
spec:
|
||
|
enableServiceLinks: false
|
||
|
containers:
|
||
|
- name: authelia
|
||
|
image: authelia/authelia:4
|
||
|
imagePullPolicy: Always
|
||
|
env:
|
||
|
- name: TZ
|
||
|
value: Europe/Amsterdam
|
||
|
ports:
|
||
|
- name: web
|
||
|
containerPort: 9091
|
||
|
volumeMounts:
|
||
|
- name: flexvolsmb-authelia-conf
|
||
|
mountPath: /config
|
||
|
- name: redis
|
||
|
image: redis:7-alpine
|
||
|
args:
|
||
|
- redis-server
|
||
|
- --requirepass
|
||
|
- authelia
|
||
|
- --appendonly
|
||
|
- 'yes'
|
||
|
ports:
|
||
|
- name: redis
|
||
|
containerPort: 6379
|
||
|
volumeMounts:
|
||
|
- name: flexvolsmb-authelia-redis
|
||
|
mountPath: /data
|
||
|
volumes:
|
||
|
- name: flexvolsmb-authelia-conf
|
||
|
persistentVolumeClaim:
|
||
|
claimName: flexvolsmb-authelia-conf
|
||
|
- name: flexvolsmb-authelia-redis
|
||
|
persistentVolumeClaim:
|
||
|
claimName: flexvolsmb-authelia-redis
|