ungleich-user/deploy/k8s/base/configmap.yaml
Sajeyks 4eeb25a3ea Add Kubernetes manifests
A kustomize base with a Deployment (2 replicas, migrate_locked init
container, liveness, readiness and startup probes, uid 10001 with a
read-only root filesystem, all capabilities dropped, RuntimeDefault
seccomp, no service account token, resource requests and limits), plus
a Service, an Ingress for account.ungleich.ch, a PodDisruptionBudget
and a ConfigMap with every non-secret setting.

The Secret is not part of the base, so credentials stay out of git;
secret.example.yaml and the README show how to create it. The README
also lists what the cluster must provide and what to confirm before
going live (StartTLS on the LDAP servers, HSTS).
2026-11-06 15:53:50 +03:00

35 lines
1.1 KiB
YAML

# Non-secret settings. See env.sample for every variable and its default.
apiVersion: v1
kind: ConfigMap
metadata:
name: ungleich-user
data:
ALLOWED_HOSTS: "account.ungleich.ch"
CSRF_TRUSTED_ORIGINS: "https://account.ungleich.ch"
TRUST_X_FORWARDED_PROTO: "True"
DEBUG: "False"
LOG_LEVEL: "INFO"
LDAPSERVER: "ldap://ldap1.ungleich.ch ldap://ldap2.ungleich.ch"
LDAP_USE_TLS: "True"
LDAPSEARCH: "ou=customers,dc=ungleich,dc=ch ou=users,dc=ungleich,dc=ch"
ENTIRE_SEARCH_BASE: "dc=ungleich,dc=ch"
LDAP_CUSTOMER_DN: "ou=customers,dc=ungleich,dc=ch"
LDAP_CUSTOMER_GROUP_ID: "" # REQUIRED: gidNumber for new customers
LDAP_DEFAULT_START_UID: "" # REQUIRED: uidNumbers start above this
DATABASE_HOST: "" # REQUIRED for >1 replica: PostgreSQL host
DATABASE_NAME: "ungleich_user"
DATABASE_USER: "ungleich_user"
DATABASE_SSLMODE: "prefer"
EMAIL_FROM_ADDRESS: "" # REQUIRED
EMAIL_HOST: "localhost"
EMAIL_PORT: "25"
EMAIL_USE_TLS: "True"
OTPSERVER: "" # REQUIRED
ADMIN_NAME: ""
ADMIN_REALM: ""
USER_REALM: ""
ALLOWED_REALMS: ""