Giter VIP home page Giter VIP logo

secrets's Introduction

Demo: Secrets

1. Install Sealed Secrets Into Your Cluster

argocd app create sealed-secrets --repo https://kubernetes-charts.storage.googleapis.com --helm-chart sealed-secrets --revision '1.5.0' --dest-server https://kubernetes.default.svc --dest-namespace kube-system 
argocd app sync sealed-secrets

2. Install Kubeseal

brew install kubeseal

3. Create Secret

export username=... ;# your Github username 
echo -n bar | kubectl create secret generic ${username}-mysecret --dry-run --from-file=foo=/dev/stdin -o json > mysecret.json

4. Seal The Secret

kubeseal --cert https://argo-cd-kubecon.apps.argoproj.io/secret/cert.pem < mysecret.json > mysealedsecret.json

5. Delete The Un-Sealed Secret

rm mysecret.json

6. Commit The Change

git add mysealedsecret.json
git commit -am 'Add secret'
git push

7. Create An App

argocd app create ${username}-secrets --repo https://github.com/${username}/secrets.git --path . --revision HEAD --dest-server https://kubernetes.default.svc --dest-namespace default
argocd app sync ${username}-secrets

Open the UI to observe the created secret, or use CLI:

kubectl -n default get secrets -o yaml

Decode YmFy using http://bit.ly/cnvcode.

Clean-Up

argocd app delete ${username}-secrets
argocd app delete sealed-secrets

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.