Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite werden Strategien für Kubernetes-Containerarbeitslasten empfohlen, die Ihre Anwendung in einer GDC-Umgebung (Google Distributed Cloud) mit mehreren Zonen und Air Gap fehlertoleranter machen. GDC unterstützt Kubernetes-native Containeranwendungen, die in Google Kubernetes Engine (GKE) weit verbreitet sind und unterstützt werden.
Diese Seite richtet sich an Entwickler in der Gruppe der Anwendungsbetreiber, die für die Erstellung von Anwendungsarbeitslasten für ihre Organisation verantwortlich sind. Weitere Informationen finden Sie in der Dokumentation zu Zielgruppen für GDC-Air-Gap-Umgebungen.
Kubernetes-Überlegungen für HA-Apps
Hochverfügbarkeit in Kubernetes umfasst mehr als nur die Steuerungsebene. Sie müssen auch Containerarbeitslasten in Ihrer Google Distributed Cloud-Umgebung (GDC) mit Air Gap resilient entwerfen und bereitstellen. Kubernetes bietet mehrere leistungsstarke Mechanismen, um Ausfallzeiten zu minimieren und hochverfügbare Dienste bereitzustellen, selbst bei Infrastrukturproblemen oder während der routinemäßigen Wartung. Die folgenden Themen sind wichtige Strategien, die Sie für die Hochverfügbarkeit in Betracht ziehen sollten:
Verfügbarkeit mit Replikaten und Autoscaling aufrechterhalten: Sie benötigen genügend laufende Instanzen Ihrer Anwendung, um Hochverfügbarkeit zu gewährleisten.
ReplicaSet: Eine ReplicaSet-Ressource sorgt dafür, dass zu jedem Zeitpunkt eine stabile Anzahl identischer Pod-Replikate ausgeführt wird. Wenn ein Pod ausfällt oder beendet wird, erstellt der ReplicaSet-Controller automatisch einen neuen Pod, um ihn zu ersetzen. Weitere Informationen finden Sie in der Kubernetes-Dokumentation unter ReplicaSet.
Horizontales Pod-Autoscaling (HPA): Während bei einem ReplicaSet eine feste Anzahl von Replikaten beibehalten wird, passt das HPA diese Anzahl automatisch basierend auf beobachteten Messwerten wie CPU- oder Arbeitsspeicherauslastung an. So kann Ihre Anwendung Lastspitzen bewältigen. Weitere Informationen finden Sie in der Kubernetes-Dokumentation unter Horizontales Pod-Autoscaling.
Stabile Endpunkte und Load-Balancing mit Diensten: Weitere Informationen finden Sie in der Kubernetes-Dokumentation unter Dienste.
Ordnungsgemäße Updates und Rollbacks mit Bereitstellungen: Weitere Informationen finden Sie in der Kubernetes-Dokumentation unter Rollback einer Bereitstellung.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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)"]]