• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

스테이트 풀셋 활용?

21.01.22 23:27 작성 조회수 229

0

보통 파드도 구글 클라우드로 볼륨을 지정해서 연결해 놓으면 

재 시작시에 같은 볼륨을보지 않나요 ? 

만약 위 가 맞다면 스테이트 풀셋은 어떨때 사용하나요 ?ㅠㅠ 

답변 1

답변을 작성해보세요.

0

gasbugs님의 프로필

gasbugs

2021.01.23

안녕하세요 강사 최일선입니다.

스테이트풀셋의 포드는 디플로이먼트의 포드와는 다르게 모두 자신만의 스토리지를 갖게 됩니다. 마치 자신만의 유지 할수 있는 스토리지를 가지고자 하는 경우에 사용됩니다.

다음글을 참조해보시면 좋을듯 합니다. 클러스터를 구축하거나 각각의 포드의 미리설정된 데이터를 유지하는데도 사용할수 있습니다.

https://www.bluematador.com/blog/an-introduction-to-kubernetes-statefulset

When to use StatefulSet

Some examples of reasons you’d use a StatefulSet include:

A Redis pod that has access to a volume, but you want it to maintain access to the same volume even if it is redeployed or restarted

A Cassandra cluster and have each node maintain access to its data

A webapp that needs to communicate with its replicas using known predefined network identifiers

감사합니다.