이 페이지에서는 Google Distributed Cloud (GDC) 에어 갭 멀티 영역 유니버스에서 애플리케이션의 내결함성을 높이는 Kubernetes 컨테이너 워크로드 전략을 권장합니다. GDC는 Google Kubernetes Engine (GKE)에서 널리 사용되고 지원되는 Kubernetes 네이티브 컨테이너 애플리케이션을 지원합니다.
이 페이지는 조직의 애플리케이션 워크로드를 만드는 애플리케이션 운영자 그룹 내 개발자를 위한 페이지입니다. 자세한 내용은 GDC 오프라인 문서 대상을 참고하세요.
HA 앱을 위한 Kubernetes 고려사항
Kubernetes에서 고가용성 (HA)을 달성하는 것은 컨트롤 플레인 이상입니다. 또한 Google Distributed Cloud (GDC) 에어 갭 유니버스에서 컨테이너 워크로드를 탄력적으로 설계하고 배포해야 합니다. Kubernetes는 인프라 문제가 발생하거나 정기 유지보수 중에도 다운타임을 최소화하고 고가용성 서비스를 제공하는 강력한 메커니즘을 여러 개 제공합니다. 다음 주제는 HA를 위해 고려해야 할 주요 전략입니다.
복제본 및 자동 확장을 통해 가용성 유지: HA를 제공하려면 애플리케이션의 실행 중인 인스턴스가 충분해야 합니다.
ReplicaSet: ReplicaSet 리소스는 어느 시점에서든 실행되는 동일한 포드 복제본의 안정적인 집합을 유지합니다. 포드가 실패하거나 종료되면 ReplicaSet 컨트롤러가 자동으로 새 포드를 만들어 대체합니다. 자세한 내용은 ReplicaSet Kubernetes 문서를 참고하세요.
수평형 포드 자동 확장 처리 (HPA): ReplicaSet는 고정된 복제본 수를 유지하는 반면 HPA는 CPU 사용률이나 메모리 사용량과 같은 관찰된 측정항목을 기반으로 이 수를 자동으로 조정합니다. 이를 통해 애플리케이션이 부하 급증을 처리할 수 있습니다. 자세한 내용은 수평형 포드 자동 확장 Kubernetes 문서를 참고하세요.
PodDisruptionBudget (PDB)로 다운타임 최소화: 자세한 내용은 애플리케이션에 중단 예산 지정 Kubernetes 문서를 참고하세요.
안티어피니티 규칙으로 위험 분산: 자세한 내용은 어피니티 및 안티어피니티 Kubernetes 문서를 참고하세요.
활성, 준비, 시작 프로브를 사용한 상태 점검: 자세한 내용은 활성, 준비, 시작 프로브 구성 Kubernetes 문서를 참고하세요.
안정적인 엔드포인트 및 서비스를 사용한 부하 분산: 자세한 내용은 서비스 Kubernetes 문서를 참고하세요.
배포를 사용한 단계적 업데이트 및 롤백: 자세한 내용은 Kubernetes 문서의 배포 롤백을 참고하세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[],[],null,["# Kubernetes workloads for high availability\n\nThis page recommends Kubernetes container workload strategies that make your\napplication more fault tolerant in a Google Distributed Cloud (GDC) air-gapped multi-zone\nuniverse. GDC supports Kubernetes-native container\napplications that are widely consumed and supported on\nGoogle Kubernetes Engine (GKE).\n\nThis page is for developers within the application operator group, who are\nresponsible for creating application workloads for their organization. For more\ninformation, see\n[Audiences for GDC air-gapped documentation](/distributed-cloud/hosted/docs/latest/gdch/resources/audiences).\n\nKubernetes considerations for HA apps\n-------------------------------------\n\nAchieving high availability (HA) in Kubernetes goes beyond just the control\nplane. You must also design and deploy container workloads in your\nGoogle Distributed Cloud (GDC) air-gapped universe resiliently. Kubernetes offers several\npowerful mechanisms to minimize downtime and provide highly available services\neven when facing infrastructure issues or during routine maintenance. The\nfollowing topics are key strategies to consider for HA:\n| **Important:** To access the URLs listed on this page, you must connect to the internet. The URLs are provided to access outside of your air-gapped environment.\n\n- **Maintain availability with replicas and autoscale**: You must have enough\n running instances of your application to provide HA.\n\n - `ReplicaSet`: A `ReplicaSet` resource maintains a stable set of\n identical pod replicas are running at any given time. If a pod fails or is\n terminated, the `ReplicaSet` controller automatically creates a new pod to\n replace it. See\n [ReplicaSet](https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/)\n Kubernetes documentation for more information.\n\n - Horizontal Pod Autoscaler (HPA): While a `ReplicaSet` maintains a fixed\n number of replicas, the HPA automatically adjusts this number based on\n observed metrics like CPU utilization or memory usage. This allows your\n application to handle load spikes. See\n [Horizontal Pod Autoscaling](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)\n Kubernetes documentation for more information.\n\n- **Minimize downtime with `PodDisruptionBudget` (PDB)** : See\n [Specifying a Disruption Budget for your Application](https://kubernetes.io/docs/tasks/run-application/configure-pdb/)\n Kubernetes documentation for more information.\n\n- **Spread your risk with anti-affinity rules** : See\n [Affinity and anti-affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)\n Kubernetes documentation for more information.\n\n- **Health checks with liveness, readiness, and startup probes** : See\n [Configure Liveness, Readiness and Startup Probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)\n Kubernetes documentation for more information.\n\n- **Stable endpoints and load balancing with services** : See\n [Services](https://kubernetes.io/docs/concepts/services-networking/service/)\n Kubernetes documentation for more information.\n\n- **Graceful updates and rollbacks with deployments** : See\n [Rolling Back a Deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-back-a-deployment)\n Kubernetes documentation for more information.\n\n- **Set requests and limits for resources** : See\n [Resource Management for Pods and Containers](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)\n Kubernetes documentation for more information.\n\nWhat's next\n-----------\n\n- [Start learning about Kubernetes](/kubernetes-engine/docs/learn/get-started-with-kubernetes)\n- [Container workloads in GDC](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/containers/containers-intro)\n- [Create a cluster to run container workloads](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/create-user-cluster)"]]