Created
March 29, 2021 09:55
-
-
Save developer-guy/c6ad80ed512833544939dbad65ace0ac to your computer and use it in GitHub Desktop.
Vault Custom Resource deploy commands
This file contains hidden or 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
# 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