uffizzi
uffizzi copied to clipboard
Add preview_url as an ENV var to containers
Same as this, but for the cli
For QA:
Each deployment container should have the UFFIZZI_URL variable with the current preview URL as a value. It should be checked in the cluster.
Find the pod name:
kubectl get pods -n deployment-1
Find a container id
kubectl describe pod/[pod_name] -n deployment-1`
SSH to the container
kubectl exec -it pod/[pod-name] -c [container_name] -n deployment-1 bash
Then echo the ENV var
echo $UFFIZZI_URL
It should be the preview url
TESTED - OK
["UFFIZZI_URL"]=> string(51) "https://deployment-3-default.app.qa-gke.uffizzi.com"
very cool thanks
TESTED on prod - OK
["UFFIZZI_URL"]=> string(51) "https://deployment-1-default.app.qa-gke.uffizzi.com"