Switch ksm registry to registry.k8s.io (#1914)

Kubernetes has switched registry from k8s.gcr.io to registry.k8s.io
in https://github.com/kubernetes/kubernetes/pull/109938.

kube-state-metrics also did the switch in
https://github.com/kubernetes/kube-state-metrics/pull/1750.

This commit also updates the registry in a kubeadm configuration
example.
This commit is contained in:
Olivier Lemasle
2022-11-07 12:10:20 +01:00
committed by GitHub
parent 01fc10ca73
commit f73206f9ed
3 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ kubernetesVersion: "v1.23.1"
networking:
dnsDomain: "cluster.local"
serviceSubnet: "10.96.0.0/12"
imageRepository: "k8s.gcr.io"
imageRepository: "registry.k8s.io"
```
Notice the `.scheduler.extraArgs` and `.controllerManager.extraArgs`. This exposes the `kube-controller-manager` and `kube-scheduler` services to the rest of the cluster. If you have kubernetes core components as pods in the kube-system namespace, ensure that the `kube-prometheus-exporter-kube-scheduler` and `kube-prometheus-exporter-kube-controller-manager` services' `spec.selector` values match those of pods.