Created
July 18, 2020 20:10
-
-
Save mesmacosta/bf46200e514e46f76666372bf917e417 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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