- install minikube, kubectl, redis, maven
- in
/etc/redis/redis.conf
comment outbind 127.0.0.1
- in that same file set
protected-mode no
andsupervised systemd
sudo systemctl restart redis
cd <project-dir>/1-lab/
mvn package
eval $(minikube docker-env)
docker build -t main-service .
minikube start --memory='5000Mb'
kubectl apply -f booking.yaml
minikube service booking --url
- use url to access apis
to shutdown:
kubectl delete -f booking.yaml
minikube stop