Fix SSH docs to use 2 dashes

This commit is contained in:
Tim Hockin 2020-11-06 20:12:44 -08:00
parent 0e802450ee
commit a2fa689296
1 changed files with 11 additions and 11 deletions

View File

@ -69,9 +69,9 @@ Secret (e.g. "git-creds" used in both above examples).
## Step 3: Configure git-sync container ## Step 3: Configure git-sync container
In your git-sync container configuration, mount the Secret volume at In your git-sync container configuration, mount the Secret volume at
"/etc/git-secret". Ensure that the `-repo` flag (or the GIT_SYNC_REPO "/etc/git-secret". Ensure that the `--repo` flag (or the GIT_SYNC_REPO
environment variable) is set to use the SSH protocol (e.g. environment variable) is set to use the SSH protocol (e.g.
git@github.com/foo/bar) , and set the `-ssh` flags (or set GIT_SYNC_SSH to git@github.com/foo/bar) , and set the `--ssh` flags (or set GIT_SYNC_SSH to
"true"). You will also need to set your container's `securityContext` to run "true"). You will also need to set your container's `securityContext` to run
as user ID "65533" which is created for running git-sync as non-root. as user ID "65533" which is created for running git-sync as non-root.
@ -81,10 +81,10 @@ as user ID "65533" which is created for running git-sync as non-root.
- name: git-sync - name: git-sync
image: k8s.gcr.io/git-sync:v3.1.5 image: k8s.gcr.io/git-sync:v3.1.5
args: args:
- "-ssh" - "--ssh"
- "-repo=git@github.com:foo/bar" - "--repo=git@github.com:foo/bar"
- "-link=bar" - "--link=bar"
- "-branch=master" - "--branch=master"
volumeMounts: volumeMounts:
- name: git-secret - name: git-secret
mountPath: /etc/git-secret mountPath: /etc/git-secret
@ -140,11 +140,11 @@ spec:
- name: git-sync - name: git-sync
image: k8s.gcr.io/git-sync:v3.1.5 image: k8s.gcr.io/git-sync:v3.1.5
args: args:
- "-ssh" - "--ssh"
- "-repo=git@github.com:torvalds/linux" - "--repo=git@github.com:torvalds/linux"
- "-link=linux" - "--link=linux"
- "-branch=master" - "--branch=master"
- "-depth=1" - "--depth=1"
securityContext: securityContext:
runAsUser: 65533 # git-sync user runAsUser: 65533 # git-sync user
volumeMounts: volumeMounts: