Skip to content

Commit

Permalink
pkg/minikube: Configure etcd and kube-proxy metrics to listen on mini…
Browse files Browse the repository at this point in the history
…kube node IP
  • Loading branch information
chancez committed Dec 13, 2019
1 parent 87a0e4e commit 52f95a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/minikube/bootstrapper/kubeadm/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ dns:
etcd:
local:
dataDir: {{.EtcdDataDir}}
extraArgs:
listen-metrics-urls: http://127.0.0.1:2381,http://{{.AdvertiseAddress}}:2381
kubernetesVersion: {{.KubernetesVersion}}
networking:
dnsDomain: {{if .DNSDomain}}{{.DNSDomain}}{{else}}cluster.local{{end}}
Expand All @@ -149,6 +151,10 @@ evictionHard:
nodefs.available: "0%"
nodefs.inodesFree: "0%"
imagefs.available: "0%"
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
metricsBindAddress: {{.AdvertiseAddress}}:10249
`))

// kubeletSystemdTemplate hosts the override kubelet flags, written to kubeletSystemdConfFile
Expand Down

0 comments on commit 52f95a8

Please sign in to comment.