Workshop wiki · Greek

Τεκμηρίωση παραδείγματος: Stateful Postgres

Αυτό το lab παρουσιάζει μια stateful βάση δεδομένων με `StatefulSet`, Headless Service, PVC, αρχικό SQL, backup `CronJob` και NetworkPolicies.

Workshop examples as ZIP files
Learning progress in the web app

Mark chapters as read, view reading progress and check off practice modules after enabling the optional web app. Workshop progress is calculated from chapters across all document pages. Your choices stay on this device; there is no account or server sync. Installation is not required. Withdrawing your choice in Privacy settings deletes the progress.

Reading progress0%
0%
0 / 5 chapters read
Other language versionGerman ↗English ↗

Τεκμηρίωση παραδείγματος: Stateful Postgres

Στόχος

Εκτελέστε μια stateful εφαρμογή με persistent storage, initialization, service discovery και ένα backup Job.

01 / 05

Τι γίνεται

Το lab δημιουργεί μια PostgreSQL instance ως StatefulSet, εισάγει αρχικά δεδομένα μέσω ConfigMap, αποθηκεύει δεδομένα σε PVC και δημιουργεί backups μέσω CronJob.

02 / 05

Συνήθεις εντολές

bash
kubectl apply -f manifests/
kubectl get pods,pvc,svc -n postgres-lab
kubectl describe statefulset postgres -n postgres-lab
kubectl create job manual-postgres-backup --from=cronjob/postgres-backup -n postgres-lab
03 / 05

Επιβεβαίωση επιτυχίας

  • Το postgres-0 βρίσκεται σε κατάσταση Ready.
  • Το PVC data-postgres-0 βρίσκεται σε κατάσταση Bound.
  • Ένα χειροκίνητο backup Job φτάνει στην κατάσταση Complete.
  • Οι NetworkPolicies επιτρέπουν την επικοινωνία του backup με την PostgreSQL χωρίς γενικευμένο Egress.
04 / 05

Συνηθισμένα λάθη

  • Δεν υπάρχει default StorageClass στο Cluster.
  • Τιμές από Secrets επαναχρησιμοποιούνται κατά λάθος σε production.
  • Τα backup Pods δεν έχουν DNS ή Egress προς τη βάση δεδομένων.
05 / 05

K8S · Orthevs Academy

31 modules as one continuous learning path.

The sequence remains unchanged: from the lab skeleton through technical foundations and operating models to final troubleshooting. The technical directory names are deliberately preserved.

Orthevs – Engineering the foundation for what comes next.

Orthevs as an app

Install Orthevs

The Orthevs web app can be installed on supported mobile devices and desktop browsers.

iPhone and iPad

Open Orthevs in Safari. Tap Share, then Add to Home Screen. Enable Open as Web App if offered, then tap Add.

Android

For the web app, open the browser menu and choose Install app or Add to Home screen. Confirm the installation.

Desktop browser

Open the browser menu or the install icon in the address bar, then choose Install app or Add to Dock.

Web app installation depends on your browser. If no install prompt appears, follow the browser steps shown above.