Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Kube-state-metrics deployment

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report