Download DockerDeskTop
The procedures utilize Alibaba Cloud's Kubernetes GitHub project, offering practical insights for developers working
with containerized applications in a Mac environment."
https://www.docker.com/products/docker-desktop/
Use ALiYun K8s for deskTop
git clone https://github.com/AliyunContainerService/k8s-for-docker-desktop.git
cd k8s-for-docker-desktop
./load_images.sh
Change user Context
kubectl config use-context docker-desktop
GetClusterInfo
kubectl cluster-info
kubectl get nodes
CreateDashboard
kubectl create -f kubernetes-dashboard.yaml
kubectl get pod -n kubernetes-dashboard
kubectl proxy
BuildToken
kubectl apply -f kube-system-default.yaml
TOKEN=$(kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}')
kubectl config set-credentials docker-desktop --token="${TOKEN}"
echo $TOKEN
Dashboard Login
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#/login
Quote
pre code{
white-space: pre;
}