得到某个pod的yaml文件信息
通过更新yaml文件更新pod
nginx-deployment-limit.yaml
apiVersion: apps/v1 kind: Deployment metadata: # Unique key of the Deployment instance name: deployment-example spec: # 3 Pods should exist at all times. replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: # Apply this label to pods and default # the Deployment label selector to this value app: nginx spec: containers: - name: nginx # Run this image image: nginx:1.10
通过edit编辑pod信息
内容来自:
https://coding.imooc.com/class/284.html
软件工程小施同学 认证博客专家 学堂在线讲师 每一个伟大,都源于一个勇敢的开始(微博:“软件工程小施同学”,公号”微程序学堂“)