Hello;
I would like to limit access to my dns link mycompagny.com.
I am using a GKE kubernetes cluster and Traefik v2.
I use the configuration from the traefik documentation
Here is my configuration:
Middleware.yaml
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: prometheus-ipwhitelist
namespace: monitoring
spec:
ipWhiteList:
sourceRange:
- 22.214.169.73
- 93.20.191.33
- 67.18.89.28
ingressroute.yaml
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: grafana
namespace: monitoring
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`mycompagny.com`)
services:
- name: prometheus-operator-grafana
port: 80
# secure web_ui
middlewares:
- name: prometheus-ipwhitelist
tls:
certResolver: myresolver
After a kubeclt apply -f
When I type the link dns mycompagny.com
the result is: Forbidden
Thank you in advance for your help