deployment vs statefulsets
2022. 8. 1. 12:38ㆍkubernetes | docker
deployment와 statefulsets의 차이점

<Deployment>
-
deployments는 stateless application을 위해 사용
-
pod교체가 가능
-
pod name이 계속적으로 유지
-
pod의 상호작용을 위해 svc가 요구됨
-
명시된 pvc, pv가 pod의 replicas에 의해 공유됨
<statefulset>
-
statefulsets은 stateful한 application을 위해 사용됨
-
pod가 교환, 바꿈이 안됨. 각 pod는 지속적인 identifier를 가지고 있으며 across(node간? )(일정 변경 시에도 계속 유지되도록 합니다.)
-
headless service는 파드의 네트워크 식별을 위해 필요하다.
-
명시된 볼륨요청탬플릿에 의한 replica pod들은 각각 pvc와 연결된다. 더 정확하게 pv는 공유되지 않는다.
'kubernetes | docker' 카테고리의 다른 글
replication controller, replicaset (0) | 2022.08.01 |
---|---|
kubernetes와 다른 컨테이너 관리도구들의 관계 (0) | 2022.08.01 |
Docker 운영방식과 구조 (0) | 2022.08.01 |
docker와 CRI-O 같이 운영 방법 (0) | 2022.08.01 |
K8S Cluster IP Change Procedure (0) | 2022.08.01 |