curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl


useradd test
sudo usermod -a -G docker test
newgrp docker
echo "1" >/proc/sys/net/bridge/bridge-nf-call-iptables

su test
minikube start --image-mirror-country='cn'
minikube addons enable ingress
minikube dashboard

kubectl cluster-info


minikube ssh
docker ps



kubectl get svc,pods -n kubernetes-dashboard

kubectl proxy --address='0.0.0.0' --accept-hosts='^*$' --port=8009

http://192.168.209.128:8009/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/#/workloads?namespace=default


kubectl create deployment httpbin --image=docker.io/kennethreitz/httpbin:1.0
kubectl describe deployment httpbin

kubectl expose deployment httpbin --type=ClusterIP --port=80
kubectl describe service httpbin

minikube start
minikube status
kubectl proxy --address='0.0.0.0' --accept-hosts='^*$' --port=8009 &
kubectl port-forward service/nginx-service 8080:80 -n ns-test --address='0.0.0.0' &