updated_at: 2025-06-19 15:10

ReplicaSet

  • 지정된 수의 Pod 복제본을 유지
  • 자체적으로 사용 잘 안 하고, 보통 Deployment 내부에서 자동 생성됨
  • Pod 수가 부족하거나 많을 때 자동으로 조정

직접 사용할 일은 드물고, Deployment가 내부적으로 사용함

예시

apiVersion: apps/v1
kind: ReplicaSet
metadata:
  name: nginx-replicaset
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:  # 실제로는 Pod 템플릿
    metadata:
      labels:
        app: nginx
    spec:
      containers:
        - name: nginx
          image: nginx:latest

Table of contents 목차

평점을 남겨주세요
평점 : 2.5
총 투표수 : 1

질문 및 답글