1,进入cmd,运行minikube start

2,输入命名

  kubectl create deployment hello-minikube --image=registry.cn-hangzhou.aliyuncs.com/google_containers/echoserver:1.10

  从阿里云用1.10版本的echoserver新建deploymeng

  通过kubectl get pod --all-namespaces看到  hello-minikube相关的pod存于running状态后,运行如下命令

  kubectl expose deployment hello-minikube --type=NodePort --port=8080
  minikube service hello-minikube

  会自动打开流量器查看最终结果

  如何用minikube快速入门kubernetes-运行第一个服务hello minikube

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2022-02-06
  • 2021-12-12
  • 2022-12-23
  • 2021-08-25
  • 2023-02-20
猜你喜欢
  • 2021-10-22
  • 2021-06-01
  • 2021-07-19
  • 2022-12-23
  • 2022-02-21
  • 2021-12-12
  • 2022-12-23
相关资源
相似解决方案