Skip to content

Commit

Permalink
correct deprecated syntax
Browse files Browse the repository at this point in the history
this syntax is being deprecated and produces a warning
old syntax: kubectl .... exec [POD] [COMMAND]
new syntax: kubectl ... exec [POD] -- [COMMAND]
  • Loading branch information
mrintern authored Aug 19, 2022
1 parent 14942b3 commit 8c3e123
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
2. Choose the secrets resource for the `kubernetes-dashboard-token`
3. click the view icon to see the value we need.
6. Now with the token we just need to provide it to kubectl to get our `ca.key` file
1. `kubectl --token="[TOKEN]" -shttps://[API_SERVER_IP]:6443 --insecure-skip-tls-verify -n kube-system exec kube-apiserver-kubedash-control-plane cat /etc/kubernetes/pki/ca.key`
1. `kubectl --token="[TOKEN]" -shttps://[API_SERVER_IP]:6443 --insecure-skip-tls-verify -n kube-system exec kube-apiserver-kubedash-control-plane -- cat /etc/kubernetes/pki/ca.key`

0 comments on commit 8c3e123

Please sign in to comment.