kubectl apply --server-side was managing the `data: {}` field, which
caused it to wipe the key/root-token entries written by the seed script
on subsequent applies. Removing the field entirely means server-side
apply never touches data, so seed-written keys survive re-applies.
11 lines
372 B
YAML
11 lines
372 B
YAML
# Placeholder secret — seed script writes real key/root-token data after init.
|
|
# Exists so the auto-unseal sidecar volume mount doesn't block pod startup.
|
|
# `data` is intentionally omitted so server-side apply never manages (or wipes)
|
|
# the key fields written by the seed script.
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: openbao-keys
|
|
namespace: data
|
|
type: Opaque
|