美文网首页
k8s-note-02

k8s-note-02

作者: robertzhai | 来源:发表于2023-02-23 08:24 被阅读0次

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

image.png image.png image.png image.png image.png

ref

相关文章

  • k8s-note-02

    install curl -LO https://storage.googleapis.com/minikube/...

网友评论

      本文标题:k8s-note-02

      本文链接:https://www.haomeiwen.com/subject/tsjfkdtx.html