I am deploying authelia with their helm chart https://artifacthub.io/packages/helm/truecharts/authelia.
I need to mount a ConfigMap to a specific file in the authelia container, however this is not available as a templated value in the values.yaml.
I'm struggling to understand what is the recommended way of doing something like this... this could generalise to "how can I customise an helm deployment beyond what is allowed through the values.yaml?"
I can only think of getting all the yaml from the chart, make the change I need and deploy like that... It can't be the best way of doing this
solution
users_database.yml
###############################################################
# Users Database #
###############################################################
# This file can be used if you do not have an LDAP set up.
# List of users
users:
admin:
displayname: "admin"
password: "redacted"
email: admin@redacted
groups:
- admins
- dev
patches/authelia_users_database.yaml
spec:
template:
spec:
containers:
- name: authelia
volumeMounts:
- name: authelia-users-database
mountPath: /etc/config
volumes:
- name: authelia-users-database
configMap:
name: authelia-users-database
values.yaml
authentication_backend:
file:
enabled: true
path: /etc/config/users_database.yml
$ helm repo add authelia https://charts.authelia.com
$ helm repo update
$ helm upgrade --install authelia authelia/authelia --values values/authelia.yaml --version 0.8.34
$ kubectl create configmap authelia-users-database --from-file=users_database.yml --dry-run -o yaml | kubectl apply -f -
$ kubectl patch daemonset authelia --patch-file patches/authelia_users_database.yaml