Skip to content

Commit

Permalink
Add: Added the sealed secrets configration in k8s-vault-minikube-star…
Browse files Browse the repository at this point in the history
…t.sh and changes made in readme
  • Loading branch information
Shubham-Patel07 committed Jun 22, 2024
1 parent 1a8b159 commit f49cc18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ The K8S setup currently is based on using Minikube for local fun. You can use th
kubectl apply -f k8s/secrets-secret.yml
kubectl apply -f k8s/challenge33.yml
kubectl apply -f k8s/secret-challenge-deployment.yml
kubectl apply -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.17.4/controller.yaml
kubectl apply -f k8s/sealed-secret-controller.yaml
while [[ $(kubectl get pods -l app=secret-challenge -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "waiting for secret-challenge" && sleep 2; done
kubectl expose deployment secret-challenge --type=LoadBalancer --port=8080
minikube service secret-challenge
Expand All @@ -194,6 +196,8 @@ Want to run vanilla on your own k8s? Use the commands below:
kubectl apply -f k8s/secrets-secret.yml
kubectl apply -f k8s/challenge33.yml
kubectl apply -f k8s/secret-challenge-deployment.yml
kubectl apply -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.17.4/controller.yaml
kubectl apply -f k8s/sealed-secret-controller.yaml
while [[ $(kubectl get pods -l app=secret-challenge -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "waiting for secret-challenge" && sleep 2; done
kubectl port-forward \
$(kubectl get pod -l app=secret-challenge -o jsonpath="{.items[0].metadata.name}") \
Expand Down
3 changes: 3 additions & 0 deletions k8s-vault-minkube-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ if [ $? == 0 ]; then
else
kubectl apply -f k8s/secrets-config.yml
fi
# Adding new commands for Sealed Secrets setup
kubectl apply -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.17.4/controller.yaml
kubectl apply -f k8s/sealed-secret-controller.yaml

kubectl get secrets | grep 'funnystuff' &> /dev/null
if [ $? == 0 ]; then
Expand Down

0 comments on commit f49cc18

Please sign in to comment.