![]() |
|
AKS Namespace Migration + Azure DevOps DR Deployment (UK Environment) - Printable Version +- DevOps Discussion Forum (https://forums.geekssolutions.io) +-- Forum: Cloud Computing (https://forums.geekssolutions.io/forumdisplay.php?fid=10) +--- Forum: DevOps (https://forums.geekssolutions.io/forumdisplay.php?fid=14) +--- Thread: AKS Namespace Migration + Azure DevOps DR Deployment (UK Environment) (/showthread.php?tid=23) |
AKS Namespace Migration + Azure DevOps DR Deployment (UK Environment) - rishi - 04-07-2026 Overview This document explains the complete process to:
Step 1: Navigate to Project Directory Code: cd /home/aks-live/24x7/AKS-Prod/sadad-POS-Queue-ConsumerStep 2: Go to Fileshare Directory Code: cd pos-queue-consumer-fileshare/Step 3: Update Storage Secret Code: vi pos-queue-consumer-storage-secret.yamlStep 4: Verify Base64 Values Code: echo "<value>" | base64 -dStep 5: Create Namespace Code: kubectl create ns sadad-online-pos-queue-consumerStep 6: Apply Resources (Order Important) Code: 1. Apply SecretStep 7: Apply Remaining Secrets Code: cd ..Step 8: Azure DevOps – Download Deployment File Go to: Repos → Sadad-POS-Queue-Consumer → manifests Download: deploy-live.yaml Step 9: Create UK Deployment File Rename: deploy-live.yaml → deploy-live-uk.yaml Update DB: - name: DB_HOST value: <UK_DB_IP> Step 10: Upload File to Repo Upload to: manifests/ Commit message: Added deploy-live-uk for DR UK Step 11: Clone Release Pipeline Go to: Pipelines → Releases → sadad-pos-queue-consumer
Step 12: Rename Stage Sadad-Live-Pos-Queue-Consumer-UK Step 13: Configure Kubernetes Connection Update:
Step 14: Update Deployment File Path $(System.DefaultWorkingDirectory)/Sadad-POS-Queue-Consumer/drop/deploy-live-uk.yaml Step 15: Update Print Tag Script Replace: deploy-live.yaml → deploy-live-uk.yaml Step 16: Run Pipeline After commit → pipeline triggers automatically Step 17: Deploy Release Go to Releases → Select new release Click:
Step 18: Verify Deployment kubectl get pods -n sadad-online-pos-queue-consumer kubectl logs <pod> Common Issue: Volume Mount Error Error: MountVolume failed: No such file or directory Fix: az storage share create \ --name pos-queue-logs \ --account-name <storage_account> \ --account-key <key> Then restart pod: kubectl delete pod <pod-name> Final Validation kubectl get pods Expected: Running Summary
Best Practices
Migration Completed Successfully |