我正在尝试向下面的掌舵图表添加一个新的仪表板
https://github.com/helm/charts/tree/master/stable/prometheus-operator
文档不是很清楚。
我已经向名称空间添加了一个配置映射,如下所示 -
apiVersion: v1
kind: ConfigMap
metadata:
name: sample-grafana-dashboard
namespace: monitoring
labels:
grafana_dashboard: "1"
data:
etcd-dashboard.json: |-
{JSON}
Run Code Online (Sandbox Code Playgroud)
根据文档,这应该只是“拾取”并添加,但不是。 https://github.com/helm/charts/tree/master/stable/grafana#configuration
我的 values.yaml 中的 sidecar 选项看起来像 -
grafana:
enabled: true
## Deploy default dashboards.
##
defaultDashboardsEnabled: true
adminPassword: password
ingress:
## If true, Grafana Ingress will be created
##
enabled: false
## Annotations for Grafana Ingress
##
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
## Labels to be added to the Ingress
##
labels: {}
## Hostnames. …
Run Code Online (Sandbox Code Playgroud)