-
Notifications
You must be signed in to change notification settings - Fork 521
kube-proxy config configmap missing - where is it ? needed for Prometheus operator #2652
Comments
Hi @sd2302, the (for k8s < 1.16) 1.16-1.18 have version-specific specs:
Feel free to submit a PR w/ the ConfigMap spec that will allow you to customize it after deployment. Would an empty ConfigMap be an iterative improvement over the current scenario? |
Actually the >= 1.16 kube-proxy specs have a On a 1.16 cluster I just built w/ aks-engine:
Note that ConfigMap is named
Ref: https://github.com/helm/charts/tree/master/stable/prometheus-operator#kubeproxy |
@jackfrancis I am on 1.15.4 Where would I put the metricsBindAddress: 0.0.0.0:10249 in the daemonset.apps/kube-proxy ? |
You'll have to add the configmap yourself on 1.15.4, as aks-engine didn't create one on cluster creation. |
Thanks, even in 1.16, where exactly would i put the metricsBindAddress: 0.0.0.0:1024 ? I dont see kind: KubeProxyConfiguration in the 1.16 configmaps |
Looks like it wants it in the |
Thanks. In 1.15.4, i tried to add --metrics-bind-address=0.0.0.0:10249 in the kube-proxy spec as below but the deamonset is not taking it spec: https://kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ |
Right, the above is adding an additional arg |
Per this https://kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ it support it but unsure why the aks-engine deamon-set not taking it ? --metrics-bind-address 0.0.0.0 Default: 127.0.0.1:10249 | The IP address for the metrics server to serve on (set to 0.0.0.0 for all IPv4 interfaces and |
Those are the 1.17 docs, perhaps it was introduced after 1.15? FWIW, there's nothing special about the |
i am going to deploy aks 1.17 tomorrow and test this out. i really need to deploy prometheus-operator helm chart and prometheus is not discovering the targets b/c of the --metrics-bind-address issue |
Thanks for sticking it out, let us know how that goes! |
I re-deployed using 16.4 and tried to update the kube-proxy-config configmap and it immediately removes it Is that a aks-engine issue ? i really need to have kube-proxy-config persist the value of metricsBindAddress: 0.0.0.0:10249 sysdev@imabvlsys-496:~/aks-engine/aksengine-testbluev2/_output/tdcmastertestbluev2-5e38750b$ kubectl describe cm/kube-proxy-config -n kube-system Dataconfig.yaml:apiVersion: kubeproxy.config.k8s.io/v1alpha1 Events: Dataconfig.yaml:apiVersion: kubeproxy.config.k8s.io/v1alpha1 Events: |
Ah, yes. That's because:
in the ConfigMap spec. in the kube-proxy spec. You could do this right now. On each master vm:
Change the above to this in the ConfigMap spec:
Then, kick the
( You should then be able to modify the ConfigMap. I've filed this issue to make this less difficult going forward: |
Thanks. that worked. With 16.4 K8 version, we are getting the metrics from Prom/Grafana helm operators and stack but yet the kubelet shows down in Prom configs. I need to open a bug with the Prom operator team. and i will update here how that goes. Right now even after setting metricsBindAddress: 0.0.0.0:10249, it is prom is scraping to internal-node-ip:10249 |
Thanks for keeping us up-to-date. Bon courage |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hey @jackfrancis I just ran into this issue with my k8s cluster deployed on Azure Stack Hub.
I am deploying the bitnami/prometheus-operator and realised kube-proxy metrics were not being collected. The workaround provided isn't ideal and I see a enchancement was raised #2672 but never acted upon. Is there any way to make this process easier going forward? Many Thanks. |
Hi @dbrennand, I've re-opened #2672 so we can track enabling the kube-addon-manager mode. Just FYI, you'll want to ensure that your kubectl client is running the same version as the cluster you're managing (I see you're managing a 1.16.9 cluster w/ the 1.18.5 client). You may not run into any issues, but any API breaking changes between minor versions will affect you here. |
Describe the bug
Per https://github.com/helm/charts/tree/master/stable/prometheus-operator
for Prometheus to scrape kubelet, we need to change kublet config as below
kubectl -n kube-system edit cm kube-proxy
But in aks-engine this cm for kube-proxy is missing
So where is the config for kubelet ?
we need change the following metricsBindAddress for prometheus to work correctly
apiVersion: v1
data:
config.conf: |-
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
# ...
# metricsBindAddress: 127.0.0.1:10249
metricsBindAddress: 0.0.0.0:10249
# ...
kubeconfig.conf: |-
Steps To Reproduce
Expected behavior
kubectl -n kube-system edit cm kube-proxy should work ?
AKS Engine version
Version: v0.45.0
Kubernetes version
15.4
Additional context
Deploying prometheus operator for K8 monitoring for aks-engine
The text was updated successfully, but these errors were encountered: