Workshop wiki · Greek

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

Αυτό το lab παρουσιάζει μια μικρή αρχιτεκτονική Queue με Redis, Producer Job, Worker Deployment, PDB, HPA και 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 ↗

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

Στόχος

Παρακολουθήστε την ασύγχρονη επεξεργασία με Queue, Producer, αύξηση των Workers και όρια επικοινωνίας στο δίκτυο.

01 / 05

Τι γίνεται

Το lab εκκινεί το Redis ως Queue, εισάγει πέντε εργασίες μέσω ενός Job και τις επεξεργάζεται με πολλαπλά Worker Pods. Το HPA περιγράφει την επιθυμητή κλιμάκωση, αλλά η πραγματική αξιολόγηση των metrics απαιτεί Metrics Server.

02 / 05

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

bash
kubectl apply -f manifests/
kubectl get deploy,job,hpa,pdb -n queue-lab
kubectl logs -n queue-lab job/queue-producer
kubectl logs -n queue-lab deployment/queue-worker --tail=50
kubectl scale deployment queue-worker -n queue-lab --replicas=4
03 / 05

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

  • Το Redis και οι Workers είναι Ready.
  • Το Producer Job φτάνει στην κατάσταση Complete.
  • Τα Worker logs εμφανίζουν εγγραφές order-* που έχουν υποστεί επεξεργασία.
  • Οι NetworkPolicies επιτρέπουν πρόσβαση στο Redis μόνο για τον Producer και τους Workers.
04 / 05

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

  • Οι Workers ξεκινούν πριν από το Redis και χρειάζονται περισσότερους κύκλους Probe.
  • Το HPA εμφανίζει unknown όταν λείπει ο Metrics Server.
  • Τα δεδομένα της Queue χάνονται, επειδή το Redis δεν χρησιμοποιεί PVC σε αυτό το lab.
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.