Skip to content

Commit

Permalink
docs(samples): add vault-provider.yaml showing generic loadFromSecret…
Browse files Browse the repository at this point in the history
… approach

Signed-off-by: Vaughn Dice <[email protected]>
  • Loading branch information
vdice committed Jul 16, 2024
1 parent fefd2b1 commit faca441
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions config/samples/vault-provider.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: core.spinoperator.dev/v1alpha1
kind: SpinApp
metadata:
name: vault-provider
spec:
image: "ttl.sh/vault-provider:3m"
executor: containerd-shim-spin
replicas: 1
runtimeConfig:
# loadFromSecret can be used to supply generic runtime config to a SpinApp via a Kubernetes secret.
loadFromSecret: vault-provider-runtime-config
---
apiVersion: v1
kind: Secret
metadata:
name: vault-provider-runtime-config
type: Opaque
data:
runtime-config.toml: W1tjb25maWdfcHJvdmlkZXJdXQp0eXBlID0gInZhdWx0Igp1cmwgPSAiaHR0cHM6Ly9teS12YXVsdC1zZXJ2ZXI6ODIwMCIKdG9rZW4gPSAibXlfdG9rZW4iCm1vdW50ID0gImFkbWluL3NlY3JldCIK

0 comments on commit faca441

Please sign in to comment.