Skip to content

Commit

Permalink
Added resource manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
PrateekKumar1709 committed Feb 29, 2024
1 parent f08afb5 commit 7059e12
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
16 changes: 16 additions & 0 deletions ExternalSecret.yaml
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
25 changes: 25 additions & 0 deletions SecretStore.yaml
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"
6 changes: 6 additions & 0 deletions Secrets.yaml
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==
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
site_name: External Secrets Operator
# site_url: https://james-willett.github.io/mkdocs-material-youtube-tutorial/

theme:
name: material
features:
Expand Down

0 comments on commit 7059e12

Please sign in to comment.