修改设置证书的命令:新版本的docker-desktop的users name为docker-desktop

pull/175/head
wangjun 3 years ago
parent 24fc30d73c
commit f8e3cd4058

@ -145,7 +145,7 @@ http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kube
```shell
TOKEN=$(kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}')
kubectl config set-credentials docker-for-desktop --token="${TOKEN}"
kubectl config set-credentials docker-desktop --token="${TOKEN}"
echo $TOKEN
```
@ -153,7 +153,7 @@ echo $TOKEN
```shell
$TOKEN=((kubectl -n kube-system describe secret default | Select-String "token:") -split " +")[1]
kubectl config set-credentials docker-for-desktop --token="${TOKEN}"
kubectl config set-credentials docker-desktop --token="${TOKEN}"
echo $TOKEN
```

@ -140,7 +140,7 @@ For Mac
```bash
TOKEN=$(kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}')
kubectl config set-credentials docker-for-desktop --token="${TOKEN}"
kubectl config set-credentials docker-desktop --token="${TOKEN}"
echo $TOKEN
```
@ -148,7 +148,7 @@ For Windows
```cmd
$TOKEN=((kubectl -n kube-system describe secret default | Select-String "token:") -split " +")[1]
kubectl config set-credentials docker-for-desktop --token="${TOKEN}"
kubectl config set-credentials docker-desktop --token="${TOKEN}"
echo $TOKEN
```

Loading…
Cancel
Save