This guide provides instructions on installing Cilium with authentication and rate-limiting capabilities
- Kubernetes cluster setup.
- Helm installed.
- Make utility installed.
-
Clone the repository
-
Install Cilium using Helm with authentication and rate-limiting:
make install-cilium-with-auth-rl
-
Wait for deployments to be ready before proceeding.
-
If you are using cloud clusters (AKS, EKS, GKE) skip this step.
- If you are using minikube run this command to expose loadbalancer ips to local network.
minikube tunnel
- Or else run
install-metallb
- If you are using minikube run this command to expose loadbalancer ips to local network.
-
Apply resources and security policy:
make setup-with-auth
-
Wait for deployments to be ready.
make test-without-auth-header
Gateway will respond with 401 as we have not provided a valid token.
make test-with-auth-header
You should see a 200 response.
-
Apply resources and rate limit policy:
make setup-with-rate-limit
-
Wait for deployments to be ready.
-
Test rate limiting with custom headers:
make test-with-rate-limit-custom-headers
-
Test simple rate limiting:
make test-with-simple-rate-limit