Workshop wiki · Greek

05 Health Probes

Αυτό το lab παρουσιάζει μια μικρή web εφαρμογή με `startupProbe`, `readinessProbe` και `livenessProbe`.

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 and English ↗

05 Health Probes

Αυτό το lab παρουσιάζει μια μικρή web εφαρμογή με startupProbe, readinessProbe και livenessProbe.

Έλεγχος

bash
kubectl apply --dry-run=client -f manifests/
01 / 05

Εκτέλεση

bash
kubectl apply -f manifests/
kubectl rollout status deployment/probe-web -n probes-lab
kubectl get pods -n probes-lab
kubectl describe pod -n probes-lab -l app.kubernetes.io/name=probe-web
kubectl port-forward -n probes-lab svc/probe-web 8080:80

Στη συνέχεια, η εφαρμογή είναι προσβάσιμη τοπικά στο http://localhost:8080.

02 / 05

Σημεία μάθησης

  • Το startupProbe προστατεύει containers που ξεκινούν αργά από πρόωρες επανεκκινήσεις.
  • Το readinessProbe καθορίζει αν ένα Pod δέχεται Service traffic.
  • Το livenessProbe εντοπίζει containers που δεν αποκρίνονται και προκαλεί επανεκκίνηση.
  • Τα ονομασμένα ports κάνουν τα Probes και τα Services πιο κατανοητά από τους αριθμούς port χωρίς όνομα.
03 / 05

Cleanup

bash
kubectl delete namespace probes-lab
04 / 05

Πηγή

Βασίζεται στην επίσημη τεκμηρίωση του Kubernetes για Liveness, Readiness και Startup Probes: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

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.