helm not installing metrics-server

hi,
i'm trying to install metrics-server using helm, i'm following the official linode video tutorial, which uses this helm command

helm upgrade --install metrics-server bitnami/metrics-server \
--create-namespace --namespace metrics-server \
--set apiService.create=true \
--set extraArgs.kubelet-insecure-tls=true \
--set extraArgs.kubelet-preferred-address-types=InternalIP

unfortunatly it is throwing this error

coalesce.go:175: warning: skipped value for metrics-server.extraArgs: Not a table.
coalesce.go:175: warning: skipped value for metrics-server.extraArgs: Not a table.
Error: INSTALLATION FAILED: YAML parse error on metrics-server/templates/deployment.yaml: error converting YAML to JSON: yaml: line 57: did not find expected '-' indicator

can someone help with this,

thanx

1 Reply

I ran into the same problem. Looks like the helm chart changed. This worked for me:

helm upgrade --install metrics-server bitnami/metrics-server \
--create-namespace --namespace metrics-server \
--set apiService.create=true \
--set --extraArgs.kubelet-insecure-tls=true \
--set --extraArgs.kubelet-preferred-address-types=InternalIP

Looks like it changed in April 2022 from a map/table to a list (github).

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct