Get the App
SLTechnology News&Howtos  ›  Servers  › 

Kube-state-metrics deployment

Shulou Source: shulou.com Published: 2022-06-02 19:33:04 10月03日 Update

Https://github.com/kubernetes/kube-state-metrics.git

In the kube-state-metrics/kubernetes directory, there are all the necessary files

[root@vm101:/root/] # ll

-rw-r--r-- 1 root root 364 October 8 19:10 kube-state-metrics-cluster-role-binding.yaml

-rw-r--r-- 1 root root 817 October 8 19:10 kube-state-metrics-cluster-role.yaml

-rw-r--r-- 1 root root 1625 October 25 10:20 kube-state-metrics-deployment.yaml

-rw-r--r-- 1 root root 382 October 8 19:10 kube-state-metrics-role-binding.yaml

-rw-r--r-- 1 root root 391 October 8 19:10 kube-state-metrics-role.yaml

-rw-r--r-- 1 root root 99 October 8 19:10 kube-state-metrics-service-account.yaml

-rw-r--r-- 1 root root 422 October 24 21:25 kube-state-metrics-service.yaml

Kubectl create-f.. / kubernetes

Note:

1. One of the images is k8s.gcr.io/addon-resizer:1.8.3, which cannot be pulled in China due to some reasons. Replacing it with ist0ne/addon-resizer can be used normally.

2. If service needs external access to the cluster, it needs to be changed to NodePort.

Tags: Reasons files directories clusters Farah Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Technology MariaDB Redmi Microsoft