得到某个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