Read server name, world and password from OpenBao via ExternalSecret

Replaces the static Secret with an ExternalSecret that pulls password,
server_name and world_name from valheim/server in the openbao
ClusterSecretStore. server.name, server.worldName and server.password are
removed from values. The StatefulSet is annotated for Stakater Reloader so
the pod restarts when the secret changes.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
2026-09-20 16:38:16 +02:00
co-authored by Claude Sonnet 5
parent a62faa0d73
commit a0cb2f4348
5 changed files with 90 additions and 26 deletions
+15 -6
View File
@@ -10,13 +10,22 @@ image:
tag: latest
pullPolicy: IfNotPresent
# Server name, world name and join password are NOT configured here - they are read from
# OpenBao via External Secrets Operator (see `externalSecret` below).
externalSecret:
# ClusterSecretStore (deployed by the openbao chart) to read from.
storeKind: ClusterSecretStore
storeName: openbao
refreshInterval: 1h
# Path of the secret inside the KV v2 mount configured on the store (`secret/`).
remoteKey: valheim/server
# Property names inside that secret.
properties:
password: password
serverName: server_name
worldName: world_name
server:
name: "Valtersheim"
worldName: "Midgard"
# Leave empty to auto-generate a random password on first deploy via the secret below.
# It is strongly recommended to override this via --set or a separate values file that is
# NOT committed to git (or use SealedSecrets/ExternalSecrets in production).
password: "changeme-please-override"
public: true
# Comma separated SteamIDs allowed to join/admin the server (optional)
admins: ""