Hi
I am very new to Traefik and Kubernetes. I installed Traefik through helm. Then I wanted to get prometheus metrics from it.
Here is an extract of my values.yaml file:
ports:
metrics:
expose: true
port: 3333
exposedPort: 3333
protocol: TCP
additionalArguments:
- "--metrics.prometheus=true"
- "--metrics.prometheus.buckets=0.100000, 0.300000, 1.200000, 5.000000"
- "--metrics.prometheus.addEntryPointsLabels=true"
- "--metrics.prometheus.addServicesLabels=true"
- "--entrypoints.metrics.address=:3333/tcp"
- "--metrics.prometheus.entryPoint=metrics"
My problem is: this configuration exposes the TCP port 3333 to the Internet. For security reasons, I would prefer to avoid this.
Is there a way to expose the port 3333 only to my cluster ?
Regards