|
68 | 68 |
|
69 | 69 | --- |
70 | 70 | ## Lab Highlights: |
71 | | - - [01. Create namespace and clear previous data if there is any](#01-Create-namespace-and-clear-previous-data-if-there-is-any) |
72 | | - - [02. Create and test the Stateful application](#02-Create-and-test-the-Stateful-application) |
73 | | - - [03. Test the Stateful application](#03-Test-the-Stateful-application) |
74 | | - - [04. Scale down the StatefulSet and check that its down](#04-Scale-down-the-StatefulSet-and-check-that-its-down) |
75 | | - - [04.01. Scale down the `Statefulset` to 0](#0401-Scale-down-the-Statefulset-to-0) |
76 | | - - [04.02. Verify that the pods Terminated](#0402-Verify-that-the-pods-Terminated) |
77 | | - - [04.03. Verify that the DB is not reachable](#0403-Verify-that-the-DB-is-not-reachable) |
78 | | - - [05. Scale up again and verify that we still have the prevoius data](#05-Scale-up-again-and-verify-that-we-still-have-the-prevoius-data) |
79 | | - - [05.01. scale up the `Statefulset` to 1 or more](#0501-scale-up-the-Statefulset-to-1-or-more) |
80 | | - - [05.02. Verify that the pods is in Running status](#0502-Verify-that-the-pods-is-in-Running-status) |
81 | | - - [05.03. Verify that the pods is using the previous data](#0503-Verify-that-the-pods-is-using-the-previous-data) |
| 71 | +- [K8S Hands-on](#k8s-hands-on) |
| 72 | +- [StatefulSets](#statefulsets) |
| 73 | + - [The Difference Between a `Statefulset` And a `Deployment`](#the-difference-between-a-statefulset-and-a-deployment) |
| 74 | + - [`Stateless` application](#stateless-application) |
| 75 | + - [`Stateful` application](#stateful-application) |
| 76 | + - [`Stateful` Notes](#stateful-notes) |
| 77 | + - [Stable Network Identity](#stable-network-identity) |
| 78 | + - [Start and Termination Order](#start-and-termination-order) |
| 79 | + - [StatefulSet Volumes](#statefulset-volumes) |
| 80 | + - [To address all those requirements, Kubernetes offers the StatefulSet primitive.](#to-address-all-those-requirements-kubernetes-offers-the-statefulset-primitive) |
| 81 | + - [Pre-Requirements](#pre-requirements) |
| 82 | + - [Lab Highlights:](#lab-highlights) |
| 83 | + - [01. Create namespace and clear previous data if there is any](#01-create-namespace-and-clear-previous-data-if-there-is-any) |
| 84 | + - [02. Create and test the Stateful application](#02-create-and-test-the-stateful-application) |
| 85 | + - [03. Test the Stateful application](#03-test-the-stateful-application) |
| 86 | + - [04. Scale down the StatefulSet and check that its down](#04-scale-down-the-statefulset-and-check-that-its-down) |
| 87 | + - [04.01. Scale down the `Statefulset` to 0](#0401-scale-down-the-statefulset-to-0) |
| 88 | + - [04.02. Verify that the pods Terminated](#0402-verify-that-the-pods-terminated) |
| 89 | + - [04.03. Verify that the DB is not reachable](#0403-verify-that-the-db-is-not-reachable) |
| 90 | + - [05. Scale up again and verify that we still have the prevoius data](#05-scale-up-again-and-verify-that-we-still-have-the-prevoius-data) |
| 91 | + - [05.01. scale up the `Statefulset` to 1 or more](#0501-scale-up-the-statefulset-to-1-or-more) |
| 92 | + - [05.02. Verify that the pods is in Running status](#0502-verify-that-the-pods-is-in-running-status) |
| 93 | + - [05.03. Verify that the pods is using the previous data](#0503-verify-that-the-pods-is-using-the-previous-data) |
82 | 94 |
|
83 | 95 | --- |
84 | 96 |
|
@@ -222,7 +234,7 @@ namespace/codewizard created |
222 | 234 |
|
223 | 235 | ```sh |
224 | 236 | # Generate and apply the required resources using kustomization |
225 | | -kubectl kustomize PostgreSQL/ . | kubectl apply -f - |
| 237 | +kubectl kustomize PostgreSQL/ | kubectl apply -f - |
226 | 238 | ``` |
227 | 239 |
|
228 | 240 | --- |
|
0 commit comments