If you are using Windows CMD, you will need to enter these two commands separately. The first command installs all the necessary components for the Metrics Server: kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml The second command specifically patches the deployment manifest to add the --kubelet-insecure-tls flag to the Metrics Server configuration: kubectl patch deployment metrics-server -n kube-system --type="json" -p="[{\"op\": \"add\", \"path\": \"/spec/template/spec/containers/0/args/-\", \"value\":\"--kubelet-insecure-tls\"}]"