This is a presentation I held at "DevOps and Security" -meetup on 5th of April 2016.
In PDF format available here Kubernetes+Secrets-github.pdf
These demos expect that you have a Kubernetes cluster running and your environment has been configured for it. (Credentials set and SDK installed)
I used Google Container Engine (GKE) for my setup. Here are the steps I used to create my cluster
export PROJECT_ID=[my-project-id]
gcloud config set project $PROJECT_ID
gcloud container clusters create devsec --num-nodes 2 --zone europe-west1-b
export CLUSTER_CONTEXT=$(kubectl config view | awk '{print $2}' | grep "devsec" | tail -n 1)
Then when ever I call the kubectl -command I actually call:
kubectl --context=$CLUSTER_CONTEXT ...
This is because I control multiple clusters in different projects and this makes sure I always run the commands in the right cluster...