Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 517 Bytes

README.md

File metadata and controls

21 lines (19 loc) · 517 Bytes

Kubernetes部署

  • 登上集群
  • 将本目录的内容clone至服务器
  • 修改mps.deployment.yaml的内容,设置容器的环境变量
  • 运行下面的命令:

创建命名promotion空间,

$ kubectl create ns promotion

promotion命名空间中创建deployment和service,

$ kubectl create -f k8s/ -n promotion

查看容器是否正常启动,

$ kubectl get pod -n promotion

如果未正常启动,则运行logs,describe子命令进行debug...

--::==