3.3.1 ReplicaSet概述
ReplicaSet配置
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: replicaset-runs-pod
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.19.0ReplicaSet与ReplicationController的区别
延伸阅读
最后更新于
这有帮助吗?