Kubernetes Sentiment
Description
We will be utilizing the tutorial found here. He references a github link that I would recommend using so you don’t have to type any code.
- git clone https://github.com/rinormaloku/k8s-mastery
(Ignore anything that relates to Minikube, you should already have kubectl installed and running in Microk8s).
- The correct port forward command is
kubectl port-forward sa-frontend 8888:80 --address 0.0.0.0
- Before loading your deployments, you should run
microk8s enable dns
.
- At the very end, it asks you to update the IP address inside of App.js. The IP address that you should use, should be 127.0.0.1. The port number will be the port number given to you by the output of
kubctl get svc
. (But it’s not the 8080 port, its the other one)
- To debug: inspect your frontend in the network tab. See where the request is going when you hit the button. Maybe you need to ssh tunnel and forward the port??
To Pass off
Prove to me that you have a kubernetes cluster running and can view sentiment analysis.