curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
    sudo install minikube-linux-amd64 /usr/local/bin/minikube
    //启动minikube 创建群集
    minikube -p k8s-master --listen-address=0.0.0.0
    //负载均衡支持
    minikube --profile=k8s-master tunnel --bind-address=192.168.0.?

    //端口转发
    socat TCP4-LISTEN:8443,reuseaddr,fork TCP4:192.168.49.2:8443

    //转发pod端口 
    sudo ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -N docker@127.0.0.1 -p 32777 -i /home/admin1/.minikube/machines/k8s-master/id_rsa -L 192.168.0.44:30082:10.99.163.3:80 &

    //转发lb端口
    minikube tunnel

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注