Search

ReplicaSet

pod의 레플리카를 생성하고 지정한 pod 수를 유지하는 리소스
기존의 replicaset controller에서 replicaset으로 변경
replicaset.yaml
apiVersion: apps/v1 kind: ReplicaSet metadata: name: myapp-replicaset labels: app: myapp type: front-end spec: template: metadata: name: myapp-prod labels: app: myapp type: front-end spec: containers: - name: nginx-container image: nginx replicas: 3 # 복제본 개수 3 selector: matchLabels: type: front-end
YAML
복사