Check the manifests:
cd /workspaces/kubernetes-helm/01_apps-with-only-manifests
tree .kubectl create ns dev
kubectl create -f dev/blueCheck the status of the pods and see the blue pod running:
kubectl get pods -n devAfterwards, you can visit the app via curl:
curl http://${INGRESS_IP}/dev/blueOr, reach via below URLs:
Note port-forwarding still has to happen for this to work.
echo "https://${CODESPACE_NAME}-8080.app.github.dev/dev/blue"kubectl create -f dev/redCheck the status of the pods and see the red and blue pods running:
kubectl get pods -n devAfterwards, you can visit the app via curl:
curl http://${INGRESS_IP}/dev/redOr, reach via below URLs:
Note port-forwarding still has to happen for this to work.
echo "https://${CODESPACE_NAME}-8080.app.github.dev/dev/red"kubectl create ns prod
kubectl create -f prod/blueCheck the status of the pods and see 3 blue pods running:
kubectl get pods -n prodAfterwards, you can visit the app via curl:
curl http://${INGRESS_IP}/prod/blueOr, reach via below URLs:
Note port-forwarding still has to happen for this to work.
echo "https://${CODESPACE_NAME}-8080.app.github.dev/prod/blue"kubectl create -f prod/redCheck the status of the pods and see 3 red and 3 blue pods running:
kubectl get pods -n prodAfterwards, you can visit the app via curl:
curl http://${INGRESS_IP}/prod/redOr, reach via below URLs:
Note port-forwarding still has to happen for this to work.
echo "https://${CODESPACE_NAME}-8080.app.github.dev/prod/red"# delete the created resources
kubectl delete -f dev/**,prod/**