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: csismb-authelia-conf
 | 
						|
          mountPath: /config
 | 
						|
      - name: redis
 | 
						|
        image: redis:7-alpine
 | 
						|
        args:
 | 
						|
          - redis-server
 | 
						|
          - --requirepass
 | 
						|
          - authelia
 | 
						|
          - --appendonly
 | 
						|
          - 'yes'
 | 
						|
        ports:
 | 
						|
          - name: redis
 | 
						|
            containerPort: 6379
 | 
						|
        volumeMounts:
 | 
						|
        - name: csismb-authelia-redis
 | 
						|
          mountPath: /data
 | 
						|
      volumes:
 | 
						|
      - name: csismb-authelia-conf
 | 
						|
        persistentVolumeClaim:
 | 
						|
          claimName: csismb-authelia-conf
 | 
						|
      - name: csismb-authelia-redis
 | 
						|
        persistentVolumeClaim:
 | 
						|
          claimName: csismb-authelia-redis
 |