Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Last active March 29, 2021 09:43
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/3150ea620fe74b1f7554d8bdc1119cdf to your computer and use it in GitHub Desktop.
Save developer-guy/3150ea620fe74b1f7554d8bdc1119cdf to your computer and use it in GitHub Desktop.
vault-operator setup commands
# Add the Banzai Cloud Helm repository
$ helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com
"banzaicloud-stable" has been added to your repositories
# Create a namespace for the bank-vaults components called vault-infra
$ kubectl create namespace vault-infra
namespace/vault-infra created
# Namespace labeling is required, because the webhook's mutation is based on label selectors
$ kubectl label namespace vault-infra name=vault-infra
namespace/vault-infra labeled
# Install the vault-operator to the vault-infra namespace
$ helm upgrade --namespace vault-infra --install vault-operator banzaicloud-stable/vault-operator --wait
Release "vault-operator" does not exist. Installing it now.
W0329 12:35:41.427820 75302 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0329 12:35:43.493288 75302 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
NAME: vault-operator
LAST DEPLOYED: Mon Mar 29 12:35:45 2021
NAMESPACE: vault-infra
STATUS: deployed
REVISION: 1
TEST SUITE: None
# Check if all pods are working
$ kubectl get pods --namespace=vault-infra
NAME READY STATUS RESTARTS AGE
vault-operator-7ff96c7fcb-2d277 1/1 Running 0 4m25s
# Check if all CR's were created
$ kubectl get customresourcedefinitions.apiextensions.k8s.io
NAME CREATED AT
etcdclusters.etcd.database.coreos.com 2021-03-29T09:35:41Z
vaults.vault.banzaicloud.com 2021-03-29T09:35:41Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment