prometheus operator
This commit is contained in:
@@ -0,0 +1,182 @@
|
||||
---
|
||||
apiVersion: helm.fluxcd.io/v1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: prometheus-operator
|
||||
namespace: prometheus
|
||||
spec:
|
||||
releaseName: prometheus-operator
|
||||
chart:
|
||||
repository: https://kubernetes-charts.storage.googleapis.com/
|
||||
name: prometheus-operator
|
||||
values:
|
||||
## Configuration for alertmanager
|
||||
## ref: https://prometheus.io/docs/alerting/alertmanager/
|
||||
##
|
||||
alertmanager:
|
||||
ingress:
|
||||
annotations: {}
|
||||
labels: {}
|
||||
enabled: false
|
||||
hosts: []
|
||||
tls: []
|
||||
# - secretName: alertmanager-general-tls
|
||||
# hosts:
|
||||
# - alertmanager.example.com
|
||||
|
||||
|
||||
## Deploy a Prometheus instance
|
||||
##
|
||||
prometheus:
|
||||
## Settings affecting prometheusSpec
|
||||
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
|
||||
##
|
||||
prometheusSpec:
|
||||
## Define which Nodes the Pods are scheduled on.
|
||||
## ref: https://kubernetes.io/docs/user-guide/node-selection/
|
||||
##
|
||||
nodeSelector:
|
||||
promtheusNode: host
|
||||
kubernetes.io/arch: amd64
|
||||
|
||||
## Prometheus StorageSpec for persistent data
|
||||
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/storage.md
|
||||
##
|
||||
storageSpec:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
||||
# selector: {}
|
||||
ingress:
|
||||
enabled: false
|
||||
annotations: {}
|
||||
labels: {}
|
||||
|
||||
## Hostnames.
|
||||
## Must be provided if Ingress is enabled.
|
||||
##
|
||||
# hosts:
|
||||
# - prometheus.domain.com
|
||||
hosts: []
|
||||
|
||||
## Paths to use for ingress rules - one path should match the prometheusSpec.routePrefix
|
||||
##
|
||||
paths: []
|
||||
# - /
|
||||
|
||||
## TLS configuration for Prometheus Ingress
|
||||
## Secret must be manually created in the namespace
|
||||
##
|
||||
tls: []
|
||||
# - secretName: prometheus-general-tls
|
||||
# hosts:
|
||||
# - prometheus.example.com
|
||||
|
||||
|
||||
## Configuration for alertmanager
|
||||
## ref: https://prometheus.io/docs/alerting/alertmanager/
|
||||
##
|
||||
alertmanager:
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
|
||||
annotations: {}
|
||||
|
||||
labels: {}
|
||||
|
||||
## Hosts must be provided if Ingress is enabled.
|
||||
##
|
||||
hosts: []
|
||||
# - alertmanager.domain.com
|
||||
|
||||
## Paths to use for ingress rules - one path should match the alertmanagerSpec.routePrefix
|
||||
##
|
||||
paths: []
|
||||
# - /
|
||||
|
||||
## TLS configuration for Alertmanager Ingress
|
||||
## Secret must be manually created in the namespace
|
||||
##
|
||||
tls: []
|
||||
# - secretName: alertmanager-general-tls
|
||||
# hosts:
|
||||
# - alertmanager.example.com
|
||||
## Settings affecting alertmanagerSpec
|
||||
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#alertmanagerspec
|
||||
##
|
||||
alertmanagerSpec:
|
||||
## Storage is the definition of how storage will be used by the Alertmanager instances.
|
||||
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/storage.md
|
||||
##
|
||||
storage:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
# selector: {}
|
||||
|
||||
## The external URL the Alertmanager instances will be available under. This is necessary to generate correct URLs. This is necessary if Alertmanager is not served from root of a DNS name. string false
|
||||
##
|
||||
externalUrl:
|
||||
## Define which Nodes the Pods are scheduled on.
|
||||
## ref: https://kubernetes.io/docs/user-guide/node-selection/
|
||||
##
|
||||
nodeSelector:
|
||||
alertmanagerNode: host
|
||||
kubernetes.io/arch: amd64
|
||||
## Using default values from https://github.com/helm/charts/blob/master/stable/grafana/values.yaml
|
||||
##
|
||||
grafana:
|
||||
adminPassword: prom-operator
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
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.
|
||||
## Must be provided if Ingress is enable.
|
||||
##
|
||||
# hosts:
|
||||
# - grafana.domain.com
|
||||
hosts: []
|
||||
|
||||
## Path for grafana ingress
|
||||
path: /
|
||||
|
||||
## TLS configuration for grafana Ingress
|
||||
## Secret must be manually created in the namespace
|
||||
##
|
||||
tls: []
|
||||
# - secretName: grafana-general-tls
|
||||
# hosts:
|
||||
# - grafana.example.com
|
||||
## Manages Prometheus and Alertmanager components
|
||||
##
|
||||
prometheusOperator:
|
||||
admissionWebhooks:
|
||||
enabled: false
|
||||
patch:
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
Reference in New Issue
Block a user