-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kube-nas: setup hashicorp vault #2010
Labels
Comments
Todos
|
jazzlyn
added a commit
that referenced
this issue
Oct 27, 2024
jazzlyn
added a commit
that referenced
this issue
Oct 27, 2024
jazzlyn
added a commit
that referenced
this issue
Oct 27, 2024
backup should be done with tekton to backup the raft storage to a google bucket apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: vault-snapshot-task
spec:
workspaces:
- name: output
steps:
- name: take-snapshot
image: vault:1.8.2
script: |
#!/usr/bin/env sh
set -e
export VAULT_ADDR=http://vault-active.vault.svc.cluster.local:8200
export VAULT_TOKEN=$(vault write -field=token auth/kubernetes/login jwt=$SA_TOKEN role=vault-backup)
vault operator raft snapshot save /workspace/output/vault-raft.snap
volumeMounts:
- name: vault-token
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
volumes:
- name: vault-token
projected:
sources:
- serviceAccountToken:
path: token
expirationSeconds: 7200
audience: vault exampple code untested |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: