Updated secrets.md with a functional DaemonSet (#1287)

* Updated secrets.md with a functional DaemonSet

* changed TCP socket for API endpoints
pull/1340/head
thehedgefrog 2020-09-24 19:48:24 -04:00 committed by GitHub
parent 4aa6fef97e
commit 86ecc03640
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 22 deletions

View File

@ -211,6 +211,7 @@ apiVersion: apps/v1
kind: DaemonSet kind: DaemonSet
metadata: metadata:
name: authelia name: authelia
namespace: authelia
labels: labels:
app: authelia app: authelia
spec: spec:
@ -239,32 +240,36 @@ spec:
value: /app/secrets/ldap_password value: /app/secrets/ldap_password
- name: AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE - name: AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE
value: /app/secrets/smtp_password value: /app/secrets/smtp_password
- name: AUTHELIA_STORAGE_POSTGRES_PASSWORD_FILE - name: AUTHELIA_STORAGE_MYSQL_PASSWORD_FILE
value: /app/secrets/sql_password value: /app/secrets/sql_password
- name: AUTHELIA_SESSION_REDIS_PASSWORD_FILE
value: /app/secrets/redis_password
- name: TZ
value: America/Toronto
ports: ports:
- name: http - name: authelia-port
containerPort: 80 containerPort: 9091
startupProbe: startupProbe:
httpGet: httpGet:
path: /api/configuration path: /api/state
port: http port: authelia-port
initialDelaySeconds: 10 initialDelaySeconds: 15
timeoutSeconds: 5 timeoutSeconds: 5
periodSeconds: 5 periodSeconds: 5
failureThreshold: 4 failureThreshold: 4
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /api/configuration path: /api/state
port: http port: authelia-port
initialDelaySeconds: 60 initialDelaySeconds: 60
timeoutSeconds: 5 timeoutSeconds: 5
periodSeconds: 30 periodSeconds: 30
failureThreshold: 2 failureThreshold: 2
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /api/configuration path: /api/state
port: http port: authelia-port
initialDelaySeconds: 10 initialDelaySeconds: 15
timeoutSeconds: 5 timeoutSeconds: 5
periodSeconds: 5 periodSeconds: 5
failureThreshold: 5 failureThreshold: 5
@ -274,9 +279,6 @@ spec:
- mountPath: /app/secrets - mountPath: /app/secrets
name: secrets name: secrets
readOnly: true readOnly: true
- mountPath: /etc/localtime
name: localtime
readOnly: true
volumes: volumes:
- name: config-volume - name: config-volume
configMap: configMap:
@ -302,7 +304,4 @@ spec:
path: ldap_password path: ldap_password
- key: smtp_password - key: smtp_password
path: smtp_password path: smtp_password
- name: localtime
hostPath:
path: /etc/localtime
``` ```