GithubHelp home page GithubHelp logo

sne-rp1's Introduction

Research Project 1

Deployment Steps

These steps are now compiled into Python and shell scripts in the tools directory.

  1. Generate TLS certificates and keys. The following files should be in rp-vault/tls:

    • ca-key.pem (with private key)
    • ca.pem (with cert)
    • vault-key.pem (with private key)
    • vault.pem (with cert)
  2. Deploy Vault

helm install vault rp-vault --values prod-values.yaml
  1. Initialize and unseal Vault, run a script to create basic policies
kubectl -n vault exec -it vault-0 -- sh
vault operator init -n 1 -t 1 // will create two tokens: unseal and root 
vault operator unseal <unseal token goes here>
vault login <root token goes here>
sh /home/create-policies.sh
  1. Deploy MongoDB
helm install mongo rp-mongo --namespace=vault --values prod-values.yaml
  1. Create policies for MondoDB credentials rotation
kubectl -n vault exec -it vault-0 -- sh
vault login <root token goes here>
sh /home/create-mongo-policies.sh
  1. Create application secrets in Vault
vault kv put secret/path/is/in/vault/values apiKey=***
  1. Deploy the application
helm install app manual-rp-chart --namespace=vault --values prod-values.yaml

Wait 10-15 seconds after this step.

  1. Go to the application service and query its endpoint:
kubectl -n vault port-forward svc/manual-rp-service 32343:3000
  1. ...

I don't like kubernetes

kid named k8s

sne-rp1's People

Contributors

leosimetti avatar khaledismaeel avatar supersloy avatar nikololiahim avatar

Stargazers

Omar Ibrahim avatar  avatar

Watchers

 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.