쿠버네티스 Replication Controller

(레플리케이션 컨트롤러에서 넘어옴)

1 개요[ | ]

쿠버네티스 Replication Controller
Kubernetes 레플리케이션 컨트롤러
  • (deprecated). 이것보다 Deployment에서 ReplicaSet 설정이 권장됨 ★
  • Pod의 인스턴스가 항상 특정 개수로 작동하도록 유지하는 쿠버네티스 서비스
  • pod에 대한 설정값에 따라 자동으로 pod 인스턴스를 추가·제거함
  • 실수로 pod 인스턴스가 삭제되거나 너무 많이 구동되었을 때, 정의된 개수로 복구함
apiVersion: v1
kind: ReplicationController
metadata:
  name: example
  namespace: default
spec:
  replicas: 2
  selector:
    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 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}