Skip to content

Latest commit

 

History

History
126 lines (83 loc) · 2.07 KB

File metadata and controls

126 lines (83 loc) · 2.07 KB

Create the applications

Manifests

Check the manifests:

cd /workspaces/kubernetes-helm/01_apps-with-only-manifests

tree .

Create the blue app on Development environment

kubectl create ns dev
kubectl create -f dev/blue

Check the status of the pods and see the blue pod running:

kubectl get pods -n dev

Afterwards, you can visit the app via curl:

curl http://${INGRESS_IP}/dev/blue

Or, 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"

Create the red app on Development environment

kubectl create -f dev/red

Check the status of the pods and see the red and blue pods running:

kubectl get pods -n dev

Afterwards, you can visit the app via curl:

curl http://${INGRESS_IP}/dev/red

Or, 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"

Create the blue app on Production

kubectl create ns prod
kubectl create -f prod/blue

Check the status of the pods and see 3 blue pods running:

kubectl get pods -n prod

Afterwards, you can visit the app via curl:

curl http://${INGRESS_IP}/prod/blue

Or, 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"

Create the red app on Production

kubectl create -f prod/red

Check the status of the pods and see 3 red and 3 blue pods running:

kubectl get pods -n prod

Afterwards, you can visit the app via curl:

curl http://${INGRESS_IP}/prod/red

Or, 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"

How long will it take to make a green app on both environments?

Cleanup

# delete the created resources
kubectl delete -f dev/**,prod/**