Workshop wiki · Greek

09 Blue Green Release

Αυτό το lab παρουσιάζει ένα Blue-Green Release με δύο Deployments και εναλλαγή του Service μέσω labels.

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 / 4 chapters read
Other language versionGerman and English ↗

09 Blue Green Release

Αυτό το lab παρουσιάζει ένα Blue-Green Release με δύο Deployments και εναλλαγή του Service μέσω labels.

Έλεγχος

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

Εκτέλεση

bash
kubectl apply -f manifests/
kubectl rollout status deployment/checkout-blue -n release-lab
kubectl rollout status deployment/checkout-green -n release-lab
kubectl get deploy,svc,endpoints -n release-lab
kubectl port-forward -n release-lab svc/checkout 8080:80

Αρχικά, το Service που δέχεται το production traffic δείχνει στο track=blue. Η μετάβαση στο Green γίνεται με Service Patch:

bash
kubectl patch service checkout -n release-lab \
  --type=merge \
  -p '{"spec":{"selector":{"app":"checkout","track":"green"}}}'

Rollback στο Blue:

bash
kubectl patch service checkout -n release-lab \
  --type=merge \
  -p '{"spec":{"selector":{"app":"checkout","track":"blue"}}}'
02 / 04

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

  • Το Blue και το Green λειτουργούν παράλληλα και μπορούν να ελεγχθούν χωριστά.
  • Το Service αλλάζει τη διαδρομή του traffic.
  • Ένα επιπλέον Green Service επιτρέπει Smoke Tests πριν από την αλλαγή.
  • Το PDB προστατεύει τη σταθερή Blue έκδοση κατά τη συντήρηση ή το drain.
03 / 04

Cleanup

bash
kubectl delete namespace release-lab
04 / 04

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.