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:
+15
-6
@@ -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: ""
|
||||
|
||||
Reference in New Issue
Block a user