Pre-requisites
- Download Minikube to run Kubernetes locally
- minikube start
- Kubectl cli download
- Create a namespace in minikube kubectl create namespace {{YourNameSpace}}
- Download the manifest.yml
- Create the docker images for rhodes {{rhodes-image}} and manisa {{manisa-image}}
- cd to Rhodes/rhodes
- docker build . -t {{your-docker-id}}/rhodes-image
- cd to Rhodes/manisa
- docker build . -t {{your-docker-id}}/manisa-image
- login to docker hub on docker dashboard using {{your-docker-id}}
- docker push {{your-docker-id}}/manisa-image
- docker push {{your-docker-id}}/rhodes-image
- Open the manifest.yaml
- replace the image name and namespace names in the manifest.yaml
- change the kubectl context to your namespace kubectl config set-context --current --namespace={{YourNamespace}}
- kubectl apply -f ./manifest.yaml
- This will create a. 2 deployments b. 2 services c. 1 Ingress
- Once the pods and services are up and running , do a port forward kubectl port-forward <{{pod-Name}} {{device-port}}:{{container-port}}