Link to our project GitHub repo can be found here: https://github.com/Nielsbk/Software_containerization
In each respective folder (DB/, server/ and UI/app/) run
docker build -t <name> .
docker push <name>
to build an image. You can also use Docker Desktop to push it to dockerhub.
(be sure to delete or ignore UI-deployment-canary.yml to avoid 2 separate deployments) a duplicate Locally (using kubectl) all components can simply be set-up and deleted from the base folder using
kubectl apply -f ./Kubernetes/
kubectl delete -f ./Kubernetes/
(be sure to delete or ignore UI-deployment-canary.yml to avoid 2 separate deployments) a duplicate
gcloud config set compute/zone europe-west4-b
gcloud container clusters create sc
git clone https://github.com/Nielsbk/Software_containerization.git
Cd Software_containerization
gcloud compute firewall-rules create ui --allow tcp:30003
gcloud compute firewall-rules create server --allow tcp:31640
helm upgrade --install app mychart/
kubectl get pods
Kubectl get nodes --output wide
Take one of the external-IPs and you can connect at ip:30003
to uninstall the application and delete the cluster when finished
helm uninstall app
gcloud container clusters delete sc
First make the change to the UI source, then;
Docker build
kubectl edit deployments.apps react-nginx-app -> edit the number of replicas in spec
Kubectl apply canary-deployment
Kubectl edit deployments.apps canary-react-app -> edit number of replicas