kubeasz/roles/cluster-addon/templates/prometheus/values.yaml.j2

150 lines
3.3 KiB
Plaintext
Raw Normal View History

2021-01-11 11:12:14 +08:00
## Provide a k8s version to auto dashboard import script example: kubeTargetVersionOverride: 1.16.6
kubeTargetVersionOverride: "{{ K8S_VER }}"
2021-01-11 11:12:14 +08:00
2022-09-09 13:55:42 +08:00
## Configuration for alertmanager
2021-01-11 11:12:14 +08:00
alertmanager:
enabled: true
2022-06-19 08:58:21 +08:00
alertmanagerSpec:
image:
2022-09-09 13:55:42 +08:00
repository: easzlab.io.local:5000/prometheus/alertmanager
2021-01-11 11:12:14 +08:00
service:
2021-01-12 17:17:27 +08:00
nodePort: 30902
2022-09-09 13:55:42 +08:00
type: NodePort
2021-01-11 11:12:14 +08:00
## Using default values from https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml
grafana:
enabled: true
adminPassword: Admin1234!
2022-06-19 08:58:21 +08:00
image:
2022-09-09 13:55:42 +08:00
repository: easzlab.io.local:5000/prometheus/grafana
2021-01-11 11:12:14 +08:00
service:
2021-01-12 17:17:27 +08:00
nodePort: 30903
type: NodePort
sidecar:
2022-06-19 08:58:21 +08:00
image:
2022-09-09 13:55:42 +08:00
repository: easzlab.io.local:5000/prometheus/k8s-sidecar
2022-06-19 08:58:21 +08:00
skipTlsVerify: true
2021-01-11 11:12:14 +08:00
2022-09-09 13:55:42 +08:00
2021-01-11 11:12:14 +08:00
## Component scraping the kube api server
kubeApiServer:
enabled: true
## Component scraping the kubelet and kubelet-hosted cAdvisor
kubelet:
enabled: true
## Component scraping the kube controller manager
kubeControllerManager:
enabled: true
endpoints:
{% for h in groups['kube_master'] %}
2021-01-11 11:12:14 +08:00
- {{ h }}
{% endfor %}
service:
port: 10257
targetPort: 10257
serviceMonitor:
https: true
insecureSkipVerify: true
serverName: localhost
2021-01-11 11:12:14 +08:00
## Component scraping coreDns. Use either this or kubeDns
coreDns:
enabled: true
## Component scraping etcd
kubeEtcd:
enabled: true
endpoints:
{% for h in groups['etcd'] %}
- {{ h }}
{% endfor %}
serviceMonitor:
scheme: https
2022-09-09 13:55:42 +08:00
insecureSkipVerify: true
2021-01-11 11:12:14 +08:00
serverName: localhost
caFile: /etc/prometheus/secrets/etcd-client-cert/etcd-ca
certFile: /etc/prometheus/secrets/etcd-client-cert/etcd-client
keyFile: /etc/prometheus/secrets/etcd-client-cert/etcd-client-key
## Component scraping kube scheduler
kubeScheduler:
enabled: true
endpoints:
{% for h in groups['kube_master'] %}
2021-01-11 11:12:14 +08:00
- {{ h }}
{% endfor %}
service:
port: 10259
targetPort: 10259
serviceMonitor:
https: true
insecureSkipVerify: true
2021-01-11 11:12:14 +08:00
## Component scraping kube proxy
kubeProxy:
enabled: true
endpoints:
{% for h in groups['kube_master'] %}
2021-01-11 11:12:14 +08:00
- {{ h }}
{% endfor %}
{% for h in groups['kube_node'] %}
{% if h not in groups['kube_master'] %}
2021-01-11 11:12:14 +08:00
- {{ h }}
{% endif %}
{% endfor %}
2022-09-09 13:55:42 +08:00
kubeStateMetrics:
enabled: true
## Configuration for kube-state-metrics subchart
kube-state-metrics:
image:
2022-09-09 13:55:42 +08:00
repository: easzlab.io.local:5000/prometheus/kube-state-metrics
## Deploy node exporter as a daemonset to all nodes
nodeExporter:
enabled: true
## Configuration for prometheus-node-exporter subchart
prometheus-node-exporter:
image:
repository: easzlab.io.local:5000/prometheus/node-exporter
2021-01-11 11:12:14 +08:00
## Manages Prometheus and Alertmanager components
prometheusOperator:
enabled: true
admissionWebhooks:
enabled: true
patch:
2022-09-09 13:55:42 +08:00
enabled: true
image:
2022-06-19 08:58:21 +08:00
repository: easzlab.io.local:5000/prometheus/kube-webhook-certgen
image:
repository: easzlab.io.local:5000/prometheus/prometheus-operator
2021-01-11 11:12:14 +08:00
service:
2021-01-12 17:17:27 +08:00
nodePort: 30899
nodePortTls: 30900
type: NodePort
2022-06-19 08:58:21 +08:00
prometheusConfigReloader:
image:
repository: easzlab.io.local:5000/prometheus/prometheus-config-reloader
2021-01-11 11:12:14 +08:00
## Deploy a Prometheus instance
prometheus:
enabled: true
service:
2021-01-12 17:17:27 +08:00
nodePort: 30901
2022-09-09 13:55:42 +08:00
type: NodePort
2021-01-11 11:12:14 +08:00
prometheusSpec:
2022-06-19 08:58:21 +08:00
image:
repository: easzlab.io.local:5000/prometheus/prometheus
2021-01-11 11:12:14 +08:00
replicas: 1
secrets:
- etcd-client-cert
storageSpec: {}