Code Monkey home page Code Monkey logo

vso-sidecar's Introduction

Deploying VSO + Sidecar on Openshift/K8s

  1. Ensure that the kubernetes cluster has no previos deployments of vault or VSO, including no pods, secrets, clusterroles, clusterrolebindings..etc

  2. Create a kubernetes namespace

kubectl create namespace vso
  1. Create a vault namespace
vault namespace create vso
  1. Export the following
export TF_VAR_vault_namespace="vso";
export TF_VAR_vault_public_address="https://vault.hashicorp.cloud:8200";
export TF_VAR_vault_admin_token="XXXXXXX";
export TF_VAR_kubernetes_endpoint="https://kubernetes.hashicorp.com";
export TF_VAR_kubernetes_namespace="vso"
  1. Ensure your kubeconfig path and context are correct in providers.tf for both the kubernetes and helm providers.

  2. Deploy using terraform

terraform init

terraform apply
  1. Check if deployment is successful
kubectl get pod
NAME                                                             READY   STATUS    RESTARTS   AGE
ault-agent-injector-58c7998447-m575m                            1/1     Running                      0          12m
vso-vault-secrets-operator-controller-manager-75748c45df-btj2t   2/2     Running   0          19m
  1. Deploy sample app and secret CRD and check that it was created
$ kubectl apply -f app-op.yml
$ kubectl get secret         
NAME                          TYPE                                  DATA   AGE
sh.helm.release.v1.vault.v1   helm.sh/release.v1                    1      16m
sh.helm.release.v1.vso.v1     helm.sh/release.v1                    1      6m56s
vault                         kubernetes.io/service-account-token   3      9m26s
vault-kv-app                  Opaque                                3      14s
vso-cc-storage-hmac-key       Opaque                                1      6m19s

vso-sidecar's People

Contributors

nicolaka avatar

Watchers

Yogesh Jagadeesan avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.