install
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64
sudo install minikube-darwin-amd64 /usr/local/bin/minikube
start
minikube config set driver docker
minikube start
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
03ca3073948e kicbase/stable:v0.0.37 "/usr/local/bin/entr…" 26 hours ago Up 3 minutes 127.0.0.1:32772->22/tcp, 127.0.0.1:32771->2376/tcp, 127.0.0.1:32770->5000/tcp, 127.0.0.1:32769->8443/tcp, 127.0.0.1:32768->32443/tcp minikube
kubectl run hello-kube --image=fhsinchy/hello-kube --port=80
kubectl get pod
kubectl expose pod hello-kube --type=LoadBalancer --port=80
kubectl get service
kubectl get service hello-kube
kubectl delete service hello-kube
kubectl apply -f hello-kube-pod.yaml
kubectl apply -f hello-kube-load-balancer-service.yaml
minikube service hello-kube-load-balancer-service
kubectl apply -f k8s





网友评论