日常更新
This commit is contained in:
9
ansible/files/05-05/README.md
Normal file
9
ansible/files/05-05/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# 05-05(Prometheus + Grafana)
|
||||
|
||||
| 文件 | 说明 |
|
||||
|------|------|
|
||||
| `kube-prometheus-stack-values.example.yaml` | Helm `kube-prometheus-stack` 的实验室向 values 示例(**非** `kubectl apply` 对象) |
|
||||
|
||||
- **手动**:按 [docs/05-05-prometheus与grafana.md](../../../docs/05-05-prometheus与grafana.md) 执行 `helm repo add` / `helm upgrade --install`,可附加 `-f ansible/files/05-05/kube-prometheus-stack-values.example.yaml`。
|
||||
- **自动**:`./ansible/bin/verify.sh run 05-05`(noop + 集群基线;与本目录示例共用真源,便于对照文档改 values)。
|
||||
- 文件名含 `example.`,`verify_common` 不会对其实施 `kubectl apply --dry-run`。
|
||||
@@ -0,0 +1,22 @@
|
||||
# Helm values for prometheus-community/kube-prometheus-stack
|
||||
# 用法(仓库根):
|
||||
# helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
|
||||
# helm repo update
|
||||
# kubectl create namespace monitoring --dry-run=client -o yaml | kubectl apply -f -
|
||||
# helm upgrade --install monitoring prometheus-community/kube-prometheus-stack -n monitoring \
|
||||
# -f ansible/files/05-05/kube-prometheus-stack-values.example.yaml
|
||||
#
|
||||
# 注意:本文件是 Helm values,不要用 kubectl apply。
|
||||
|
||||
prometheus:
|
||||
prometheusSpec:
|
||||
retention: 7d
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
|
||||
grafana:
|
||||
enabled: true
|
||||
persistence:
|
||||
enabled: false
|
||||
Reference in New Issue
Block a user