Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| en:modul:m321_aws:topics:09 [2025/09/30 17:56] – dgaravaldi | en:modul:m321_aws:topics:09 [2025/10/27 09:42] (aktuell) – dgaravaldi | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ===== Pod Lifecycle | + | ===== How Kubernetes " |
| + | Let's first have an overview over the pieces of ' | ||
| + | |||
| + | - **Controllers** (Deployment → ReplicaSet → Pods): A Deployment declares the desired number of pod replicas. The '' | ||
| + | - **Restart Policy**: Container-level restarts are controlled by the Pod’s '' | ||
| + | - **Health checks** (so called **Probes**) | ||
| + | * **Liveness probe**: if it fails, kubelet will kill & restart the container (useful for recovering stuck processes). | ||
| + | * **Readiness probe**: controls whether a pod is considered " | ||
| + | - **Pod lifecycle**: | ||
| + | |||
| + | \\ | ||
| + | ==== Pod Lifecycle | ||
| Lifecycle and hooks that are offered for Pods (and Containers) are points where your code can take actions. Kubernetes offers a number of places where you can provide explicit feedback to the system to have it operate as you’d like. | Lifecycle and hooks that are offered for Pods (and Containers) are points where your code can take actions. Kubernetes offers a number of places where you can provide explicit feedback to the system to have it operate as you’d like. | ||
| Zeile 12: | Zeile 23: | ||
| * **Succeeded (or) Failed**: The Pod has finished operation (normally or crashed) | * **Succeeded (or) Failed**: The Pod has finished operation (normally or crashed) | ||
| * **Unknown**: | * **Unknown**: | ||
| + | \\ | ||
| ==== Probes ==== | ==== Probes ==== | ||
| Zeile 25: | Zeile 36: | ||
| In the latter case, it will check with the defined '' | In the latter case, it will check with the defined '' | ||
| - | The default value for '' | + | The default value for '' |