1
0
Fork 0
kubernetes/authelia/kustomization.yaml

51 lines
1.2 KiB
YAML

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
labels:
- pairs:
app.kubernetes.io/instance: authelia
resources:
- secrets.yaml
- redis.yaml
- authelia.yaml
- oidc-cluster-admin.yaml
configMapGenerator:
- name: authelia
namespace: authelia
files:
- configuration.yml
- name: postgresql-ca
namespace: authelia
files:
- postgresql-ca.crt
patches:
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: authelia
namespace: authelia
spec:
template:
spec:
containers:
- name: authelia
env:
- name: AUTHELIA_STORAGE_POSTGRES_PASSWORD_FILE
value: /run/authelia/secrets/postgresql/password
volumeMounts:
- mountPath: /run/authelia/certs
name: postgresql-ca
- mountPath: /run/authelia/secrets/postgresql
name: postgresql-auth
volumes:
- name: postgresql-auth
secret:
secretName: authelia.authelia.default.credentials.postgresql.acid.zalan.do
- name: postgresql-ca
configMap:
name: postgresql-ca