-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f08afb5
commit 7059e12
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: vault-example | ||
spec: | ||
refreshInterval: "15s" | ||
secretStoreRef: | ||
name: vault-backend | ||
kind: SecretStore | ||
target: | ||
name: example-sync | ||
data: | ||
- secretKey: foobar | ||
remoteRef: | ||
key: kv/demo #make sure this matches with what you create in the vault UI | ||
property: name #this is the secret you create under the path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: SecretStore | ||
metadata: | ||
name: vault-backend | ||
spec: | ||
provider: | ||
vault: | ||
server: "http://vault.vault:8200" # your vault address | ||
path: "kv" | ||
# Version is the Vault KV secret engine version. | ||
# This can be either "v1" or "v2", defaults to "v2" | ||
version: "v2" | ||
auth: | ||
# points to a secret that contains a vault token | ||
# https://www.vaultproject.io/docs/auth/token | ||
tokenSecretRef: | ||
name: "vault-token" | ||
key: "token" | ||
# --- | ||
# apiVersion: v1 | ||
# kind: Secret | ||
# metadata: | ||
# name: vault-token | ||
# data: | ||
# token: aHZzLlVxekU2dWtFeWVzZjFKa0puUkVBc0dFUw== # "your vault root token" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: vault-token | ||
data: | ||
token: aHZzLlVxekU2dWtFeWVzZjFKa0puUkVBc0dFUw== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters