-
Setup the following secrets for secret as env variables when running the bootstrap script
-
- DOCKER_USERNAME - to push/pull image to docker hub
-
- DOCKER_PASSWORD - to push/pull image to docker hub
-- bootstrap.sh steps:-
- Docker login
- Build JAVA image using Dockerfile in java-app folder
- Push to DOCKER HUB
- Remove local copy
- Build GOLANG image using Dockerfile in golang-app folder
- Push to DOCKER HUB
- Remove local copy
- kubectl apply JAVA Deployment, Service
- kubectl apply GOLANG Deployment, Service
- kubectl apply INGRESS and CANARY INGRESS for JAVA Service with 30% weight
- Prereq:
- minikube with nginx ingress controller installed
Validation:
- Ingress: