fix(metrics-server): Remove --kubelet-insecure-tls (#1389)

* fix(metrics-server): Remove --kubelet-insecure-tls

According to https://www.talos.dev/v1.6/kubernetes-guides/configuration/deploy-metrics-server, this flag is not necessary when enabling certificate rotation and an auto CSR approver.

* Update helmrelease.yaml.j2

---------

Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
This commit is contained in:
Jean-François RoyandDevin Buhl authored and GitHub committed 2024-03-27 12:56:43 -04:00
1 parent d3a4b10641
commit 1a9c37c910
1 file changed
+3 -1
@@ -22,10 +22,12 @@ spec:
retries: 3
values:
args:
- --kubelet-insecure-tls
- --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
- --kubelet-use-node-status-port
- --metric-resolution=15s
#% if bootstrap_distribution in ["k3s"] %#
- --kubelet-insecure-tls
#% endif %#
metrics:
enabled: true
serviceMonitor: