Merge pull request #175 from wangj90/master

修改设置证书的命令:新版本的docker-desktop的users name为docker-desktop
pull/179/head
Li Yi 3 years ago committed by GitHub
commit f470b73eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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