k3s 部署 kube-prometheus-stack 监控栈

k3s 部署 kube-prometheus-stack 监控栈

TL;DR $ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts $ helm repo update $ helm show values prometheus-community/kube-prometheus-stack $ helm show values prometheus-community/kube-prometheus-stack > values.yaml # Edit values.yaml $ helm install prometheus-community prometheus-community/kube-prometheus-stack --namespace monitoring -f values.yaml --create-namespace # update values.yaml $ helm upgrade --install prometheus-community prometheus-community/kube-prometheus-stack --namespace monitoring -f values.yaml References kube-prometheus-stack 实战指南:使用 kube-prometheus-stack 监控 K3s 集群

March 14, 2025 | 1 分钟 | 64 字 | Tianlun Song
k8s-k3s 标记节点暂时不可用及排空

k8s-k3s 标记节点暂时不可用及排空

TL;DR # 标记为不可调度 kubectl cordon NODE # 将运行的pod平滑的赶到其他节点上 kubectl drain NODE # 重新变得可调度 kubectl uncordon NODE References K8S中的cordon、uncordon和drain kubectl cordon

March 14, 2025 | 1 分钟 | 73 字 | Tianlun Song
helm operation 中断锁死问题解决

helm operation 中断锁死问题解决

两种方案: 解决办法 方法一,卸载重装 helm uninstall <release name> -n <namespace> 方法二,回滚 This error can happen for few reasons, but it most commonly occurs when there is an interruption during the upgrade/install process as you already mentioned. 发生此错误的原因有很多,但最常见的原因是升级/安装过程中出现中断,正如您之前提到的。 ...

March 14, 2025 | 1 分钟 | 421 字 | Tianlun Song