PodTemplateSpec
PodTemplateSpec (파드 템플릿 스펙)
PodTemplateSpec은 Kubernetes에서 파드의 실행 방식을 정의하는 리소스예요. GatewayConfiguration과 DataPlane 리소스에서 각각 컨트롤 플레인과 데이터 플레인 파드를 구성하는 데 사용할 수 있어요. 이미지 설정, 사이드카 배포, 볼륨 마운트 등 다양한 커스터마이징이 가능해요. 공식 Kubernetes 문서에서 더 자세한 정보를 확인할 수 있어요.
출처: 문서
본문
자세한 내용은 PodTemplateSpec 문서를 참조하세요.
PodTemplateSpec은 GatewayConfiguration과 DataPlane 리소스 모두에 제공할 수 있어요.
GatewayConfiguration
GatewayConfiguration 리소스를 사용할 때 ControlPlane과 DataPlane 리소스는 독립적으로 구성돼요.
ControlPlane파드는spec.controlPlaneOptions.deployment.podTemplateSpec필드에서 구성을 가져와요.DataPlane파드는spec.dataPlaneOptions.deployment.podTemplateSpec필드에서 구성을 가져와요.
DataPlane
DataPlane 리소스를 직접 사용할 때는 spec.deployment.podTemplateSpec을 지정해요.
Common Usage
다음은 PodTemplateSpec의 가장 일반적인 사용 예시예요:
또한 다음 항목도 사용자 지정할 수 있어요:
- 볼륨 마운트
- 노드 어피니티/안티-어피니티
- 파드를 실행하는 데 사용되는 서비스 계정
배포 사용자 지정에 대한 추가 정보가 필요하면 Kong/gateway-operator에 이슈를 제기해 주세요.
더 알아보기 (Learn more)
- DataPlane 이미지를 사용자 정의하는 방법을 알려줘요 — Customize the DataPlane image
- 사이드카 컨테이너를 배포하는 방법을 알려줘요 — Deploy a sidecar container
- PodTemplateSpec에 대한 공식 문서를 제공해요 — PodTemplateSpec documentation