Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Created March 29, 2021 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save developer-guy/c6ad80ed512833544939dbad65ace0ac to your computer and use it in GitHub Desktop.
Save developer-guy/c6ad80ed512833544939dbad65ace0ac to your computer and use it in GitHub Desktop.
Vault Custom Resource deploy commands
# Create a Vault instance with the operator which has the Kubernetes auth method configured
$ git clone https://github.com/developer-guy/inject-secrets-from-vault-to-pod-using-vault-env
$ cd inject-secrets-from-vault-to-pod-using-vault-env
# Create necessary RBAC
$ kubectl apply -f rbac.yaml
serviceaccount/vault created
role.rbac.authorization.k8s.io/vault created
rolebinding.rbac.authorization.k8s.io/vault created
clusterrolebinding.rbac.authorization.k8s.io/vault-auth-delegator created
$ kubectl apply -f cr.yaml
vault.vault.banzaicloud.com/vault created
persistentvolumeclaim/vault-file created
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
vault-0 3/3 Running 0 104s
vault-configurer-59c79f4b9f-2xrgt 1/1 Running 0 96s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment