1 개요[ | ]
- 쿠버네티스 ReplicaSet
- Kubernetes 레플리카셋
- 차세대 레플리케이션 컨트롤러
- ReplicationController과 마찬가지로, 특정 수의 pod 레플리카들이 동시에 구동되도록 한다.
- 단 Replication Controller가 균등-기반의 셀렉터 요건만을 지원하는 반면, ReplicaSet은 새로 나온 집합-기반의 셀렉터 요건(레이블 사용자 가이드에 기술됨)도 지원함
yaml
Copy
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: example
namespace: default
spec:
replicas: 2
selector:
matchLabels:
app: hello-openshift
template:
metadata:
name: hello-openshift
labels:
app: hello-openshift
spec:
containers:
- name: hello-openshift
image: openshift/hello-openshift
ports:
- containerPort: 8080
2 같이 보기[ | ]
3 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.