跳到主要內容

發表文章

精選

如何在 k8s 上 部署 prometheus + grafana ...

依照慣例,來刷一下存在感 XD 今天來介紹如何在 k8s 上 部署 prometheus + grafana ... 1. 先拉取 prometheus 、 grafana 、 node-exporter 的 docker image 2. 匯出 prometheus 、 grafana 、 node-exporter 的 docker image 3. 利用 scp 把資料丟到遠端伺服器上 4. 因為這個 node-exporter image tag 版本我 tag 為 latest ,所以在匯入 kind local registry 之前必須要改 tag ,把 latest 改成 v1.3.1 因為 kind 的 local registry 不吃 latest !!! kind 的 local registry 不吃 latest !!! kind 的 local registry 不吃 latest !!! 指令如下: auxo@auxo-virtual-machine:~/tmp/docker-imgs$ docker tag prom/node-exporter:latest prom/node-exporter:v1.3.1 4.1. 把 prometheus 、 grafana 、 node-exporter 的 docker image load 到 k8s (kind) 的 local registry auxo@auxo-virtual-machine:~/tmp/docker-imgs$ kind load docker-image grafana/grafana:8.5.5 --name test-cluster Image: "grafana/grafana:8.5.5" with ID "sha256:a04af134d9fccb02a8fd584c38b1fc3c38393b851f05ce5740758c468e3a38c1" not yet present on node "test-cluster-worker2", loading... Image: "grafana/grafana:8.5.5" with ID "sha25...

最新文章

關於sybase讀取big5資料亂碼的解法。

09.立山黑部. 夏.7/13/2009