Skip to content

Commit

Permalink
fixng perms and user
Browse files Browse the repository at this point in the history
  • Loading branch information
warroyo committed Nov 13, 2020
1 parent c51d3bc commit 78a2d50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest-vds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
spec:
serviceAccountName: internal-kubectl
securityContext:
runAsUser: 100
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
containers:
Expand Down
2 changes: 1 addition & 1 deletion proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function run()
#get the secret for the machine and create a file
loginfo "getting ssh key for ${cluster}"
kubectl get secret ${cluster}-ssh -n ${ns} -o jsonpath="{.data.ssh-privatekey}" | base64 -d > /tmp/sshkey.pem
chmod 400 /tmp/sshkey.pem
chmod 600 /tmp/sshkey.pem

loginfo "attempting ssh to ${ip}"
ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i /tmp/sshkey.pem vmware-system-user@${ip} << EOF
Expand Down

0 comments on commit 78a2d50

Please sign in to comment.