Setup a K8s cluster, you are free to choose any installation tool you want. - OK
Install any application you want on this cluster make sure it uses Nginx as its frontend. - OK
Implement scale up to Nginx using the “request per second” metric.
Perform some load on it and test it that it scales up.
-
install minikube and kubectl
Make sure to enable the ingress addon
minikube addons enable ingress -
build docker image locally:
use the following commands to build the container(from the flask-app directory):
eval $(minikube docker-env) docker build -t k8s/flask-nginx . -
run deployment:
kubectl apply -f flask.yml -
get the url:
minikube service flaskapi --url