Quick Reference
Backend initialization (run first, once per environment):
terraform init -backend-config=backend-configs/production-primary.hcl
terraform init -backend-config=backend-configs/production-secondary.hclWorkspaces (create once, after init):
terraform workspace new primary
terraform workspace new secondaryWorkspace selection:
terraform workspace select primary
terraform workspace select secondaryApplies:
# Primary:
terraform apply -var-file=primary-<region>.tfvars
# Secondary:
terraform apply -var-file=secondary-<region>.tfvarsReadiness on secondary:
kubectl --context aks-secondary -n logging scale deploy humio-operator --replicas=1Verify Humio pod and DataSnapshotLoader logs as in Stage 2
Encryption key comparison (hash):
# Primary:
kubectl get secret -n logging logscale-storage-encryption-key --context aks-primary -o jsonpath='{.data.azure-storage-encryption-key}' | base64 -d | shasum -a 256
# Secondary:
kubectl get secret -n logging logscale-storage-encryption-key --context aks-secondary -o jsonpath='{.data.azure-storage-encryption-key}' | base64 -d | shasum -a 256Storage credentials verification:
kubectl get secret logscale-storage-encryption-key -n loggingTraffic Manager Status Check:
Profile shows "Degraded"? This is expected when secondary is in standby mode
Verify primary endpoint is "Online":
az network traffic-manager endpoint show --profile-name <tm-profile> --name <primary-endpoint> --resource-group <rg> --type externalEndpoints --query endpointMonitorStatusVerify traffic routes correctly:
curl -sk https://<global-dr-fqdn>/api/v1/statusshould return HTTP 200See Traffic Manager Priority Routing for more details.