As the title suggests, this is a note on how to use Helm to install metrics-server on the Kubernetes cluster that comes with Docker for Mac.
Basically, just execute the following command.
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install metrics-server bitnami/metrics-server --namespace kube-system --set rbac.create=false --set apiService.create=true --set extraArgs.kubelet-insecure-tls=true
Each command executes the following.
After waiting for a while, you can get the metrics with kubectl top node
etc.
$ kubectl top node
NAME CPU(cores) CPU% MEMORY(bytes) MEMORY%
docker-desktop 521m 8% 1363Mi 19%
[^ 1]: The simple and difficult method is to specify --kubelet-insecure-tls
as the command argument. The metrics-server provides extraArgs
, but if you see that the default is[]
and specify extraArgs [0] = kubelet-insecure-tls
, then --0 = It is converted to kubelet-insecure-tls
and does not work.
Recommended Posts