This message was deleted.
# rke2
a
This message was deleted.
b
Hi Salvatore, you can solve this problem by add these parameter in your rke2 config
for master:
Copy code
etcd-expose-metrics: true
kube-controller-manager-arg:
  - "bind-address=0.0.0.0"
kube-scheduler-arg:
  - "bind-address=0.0.0.0"
kube-proxy-arg:
  - "metrics-bind-address=0.0.0.0:10249"
  - "proxy-mode=ipvs"
  - "ipvs-strict-arp=true"
kube-proxy-extra-mount:
  - "/lib/modules:/lib/modules:ro"
for agent:
Copy code
kube-proxy-arg:
  - "metrics-bind-address=0.0.0.0:10249"
  - "proxy-mode=ipvs"
  - "ipvs-strict-arp=true"
kube-proxy-extra-mount:
  - "/lib/modules:/lib/modules:ro"
b
Hi Xavier and thanks for your answer. Now all the metrics are correctly discovered except for kube-proxy. Maybe I’m missing something
The configuration looks correct to me, I have the following output in all the nodes:
Copy code
root@***:~# ss -alnp | grep -E "10257|2381|10249|10259"
tcp                LISTEN              0                    4096                                                                                              *:10249
but still the alert is firing
b
you should add this config in your kube-stack-prometheus
Copy code
...
kubeProxy:
   service:
     selector:
        component: kube-proxy
b
thank you so much, now it works correctly. Have a nice day!