Deployment
作者:互联网
apiVersion: apps/v1
kind: Deployment
metadata:
name: kubia
spec:
replicas: 3
template:
metadata:
name: kubia
labels:
app: kubia
spec:
containers:
- image: luksa/kubia:v1
name: nodejs
selector:
matchLabels:
app: kubia
kubectl create -f . --record
kubectl rollout status deploy kubia // 查看滚动过程中的状态
kubectl rollout history deploy kubia// 查看滚动历史
kubectl rollout undo deploy kubia --to-revision=1
kubectl rollout pause deploy kubia
kubectl rollout resume deploy kubia
标签:kubectl,name,deploy,app,Deployment,rollout,kubia 来源: https://blog.csdn.net/qq_42576512/article/details/117486478