2. Install Kong Ingress Controller on minikube: https://docs.konghq.com/kubernetes-ingress-controller/latest/deployment/minikube/
- Test wich echo-server
- Create environment variable: export PROXY_IP=$(minikube service -n kong kong-proxy --url | head -1)
3. build that Spring boot service:
- Run ./mvnw install
- Run jar: java -jar target/*.jar
4. Create a Docker image:
If using minikube and don't want to push image to a repository, then point your local Docker client to Minikube's implementation: eval $(minikube -p minikube docker-env) --- use the same shell.
- Run: ./mvnw spring-boot:build-image
5. Deploy the application, create a service and an ingress rule:
```
kubectl apply -f serviceDeployment.yaml
kubectl apply -f clusterIp.yaml
kubectl apply -f ingress-rule.yaml
```
6. Test access using the proxy IP:
```
curl -i $PROXY_IP/actuator/health
```
## Setting up a rate limiter on your api
7. Create a plugin:
kubectl apply -f rate-limiter.yaml
8. Now test resource. Try more than 5 times a minute: