Merge pull request #142 from EugeneChung/patch-1

~ -> $HOME
This commit is contained in:
Kubernetes Prow Robot 2019-01-31 00:39:36 -08:00 committed by GitHub
commit 32982a9dda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ ssh-keyscan $YOUR_GIT_HOST > /tmp/known_hosts
Use the ``kubectl create secret`` command and point to the file on your filesystem that stores the key. Ensure that the file is mapped to "ssh" as shown (the file can be located anywhere). Use the ``kubectl create secret`` command and point to the file on your filesystem that stores the key. Ensure that the file is mapped to "ssh" as shown (the file can be located anywhere).
``` ```
kubectl create secret generic git-creds --from-file=ssh=~/.ssh/id_rsa --from-file=known_hosts=/tmp/known_hosts kubectl create secret generic git-creds --from-file=ssh=$HOME/.ssh/id_rsa --from-file=known_hosts=/tmp/known_hosts
``` ```
***Method 2:*** ***Method 2:***