Skip to content

Instantly share code, notes, and snippets.

@mesmacosta
Created July 18, 2020 20:10
Show Gist options
  • Select an option

  • Save mesmacosta/bf46200e514e46f76666372bf917e417 to your computer and use it in GitHub Desktop.

Select an option

Save mesmacosta/bf46200e514e46f76666372bf917e417 to your computer and use it in GitHub Desktop.
export GCLOUD_EMAIL=$(gcloud config get-value account)
cd $LAB_DIR
ssh-keygen -t rsa -b 4096 \
-C "$GCLOUD_EMAIL" \
-N '' \
-f $HOME/.ssh/id_rsa.acm
kubectx gke
kubectl create secret generic git-creds \
--namespace=config-management-system \
--from-file=ssh=$HOME/.ssh/id_rsa.acm
kubectx onprem.k8s.local
kubectl create secret generic git-creds \
--namespace=config-management-system \
--from-file=ssh=$HOME/.ssh/id_rsa.acm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment