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