Commit 71781024 by shanewxy

Allow for configuring healthcheck probes on monitoring services

parent a2ad74ef
...@@ -30,17 +30,9 @@ spec: ...@@ -30,17 +30,9 @@ spec:
- name: http-metrics - name: http-metrics
containerPort: 8081 containerPort: 8081
livenessProbe: livenessProbe:
httpGet: {{ merge .Values.livenessProbe .Values.defaultLivenessProbe | toYaml | indent 10 }}
path: /
port: 8080
initialDelaySeconds: 30
timeoutSeconds: 30
readinessProbe: readinessProbe:
httpGet: {{ merge .Values.readinessProbe .Values.defaultReadinessProbe | toYaml | indent 10 }}
path: /
port: 8080
initialDelaySeconds: 30
timeoutSeconds: 5
resources: resources:
{{ toYaml .Values.resources | indent 10 }} {{ toYaml .Values.resources | indent 10 }}
{{- if .Values.enabledRBAC }} {{- if .Values.enabledRBAC }}
......
...@@ -8,3 +8,27 @@ tolerations: [] ...@@ -8,3 +8,27 @@ tolerations: []
# operator: "Equal" # operator: "Equal"
# value: "value" # value: "value"
# effect: "NoSchedule" # effect: "NoSchedule"
## Default liveness probe
##
defaultLivenessProbe:
initialDelaySeconds: 100
failureThreshold: 6
httpGet:
path: /
port: 8080
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 30
## Default readiness probe
##
defaultReadinessProbe:
initialDelaySeconds: 10
failureThreshold: 6
httpGet:
path: /
port: 8080
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 5
...@@ -79,14 +79,12 @@ spec: ...@@ -79,14 +79,12 @@ spec:
- name: web - name: web
containerPort: 3000 containerPort: 3000
protocol: TCP protocol: TCP
{{- if .Values.livenessProbe }}
livenessProbe:
{{ toYaml .Values.livenessProbe | indent 10 }}
{{- end }}
readinessProbe: readinessProbe:
httpGet: {{ merge .Values.readinessProbe .Values.defaultReadinessProbe | toYaml | indent 10 }}
path: /api/health
port: 3000
periodSeconds: 1
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 10
{{- if and .Values.resources .Values.resources.core }} {{- if and .Values.resources .Values.resources.core }}
resources: resources:
{{ toYaml .Values.resources.core | indent 10 }} {{ toYaml .Values.resources.core | indent 10 }}
......
...@@ -27,6 +27,18 @@ storageSpec: {} ...@@ -27,6 +27,18 @@ storageSpec: {}
# storage: 2Gi # storage: 2Gi
# selector: {} # selector: {}
## Default readiness probe
##
defaultReadinessProbe:
initialDelaySeconds: 30
failureThreshold: 10
httpGet:
path: /api/health
port: 3000
periodSeconds: 1
successThreshold: 1
timeoutSeconds: 1
## Resource limits & requests ## Resource limits & requests
## Ref: https://kubernetes.io/docs/user-guide/compute-resources/ ## Ref: https://kubernetes.io/docs/user-guide/compute-resources/
resources: resources:
......
...@@ -58,23 +58,9 @@ spec: ...@@ -58,23 +58,9 @@ spec:
name: web name: web
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
failureThreshold: 6 {{ merge .Values.livenessProbe .Values.defaultLivenessProbe | toYaml | indent 6 }}
httpGet:
path: /-/healthy
port: web
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
readinessProbe: readinessProbe:
failureThreshold: 10 {{ merge .Values.readinessProbe .Values.defaultReadinessProbe | toYaml | indent 6 }}
httpGet:
path: /-/ready
port: web
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
{{- if and .Values.resources .Values.resources.auth }} {{- if and .Values.resources .Values.resources.auth }}
resources: resources:
{{ toYaml .Values.resources.auth | indent 6 }} {{ toYaml .Values.resources.auth | indent 6 }}
......
...@@ -81,3 +81,29 @@ thanos: ...@@ -81,3 +81,29 @@ thanos:
## ObjectStoreConfig ## ObjectStoreConfig
## Ref: https://github.com/thanos-io/thanos/blob/master/docs/storage.md ## Ref: https://github.com/thanos-io/thanos/blob/master/docs/storage.md
objectConfig: {} objectConfig: {}
## Default liveness probe
##
defaultLivenessProbe:
initialDelaySeconds: 300
failureThreshold: 6
httpGet:
path: /-/healthy
port: web
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
## Default readiness probe
##
defaultReadinessProbe:
initialDelaySeconds: 60
failureThreshold: 10
httpGet:
path: /-/ready
port: web
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
...@@ -202,6 +202,8 @@ exporter-kube-state: ...@@ -202,6 +202,8 @@ exporter-kube-state:
runAsUser: 65534 runAsUser: 65534
runAsNonRoot: true runAsNonRoot: true
fsGroup: 65534 fsGroup: 65534
livenessProbe: {}
readinessProbe: {}
alertmanager: alertmanager:
enabled: false enabled: false
...@@ -292,6 +294,8 @@ grafana: ...@@ -292,6 +294,8 @@ grafana:
## ##
serviceAccountName: "" serviceAccountName: ""
prometheusDatasourceURL: "http://prometheus-operated:9090" prometheusDatasourceURL: "http://prometheus-operated:9090"
livenessProbe: {}
readinessProbe: {}
prometheus: prometheus:
enabled: false enabled: false
...@@ -376,6 +380,8 @@ prometheus: ...@@ -376,6 +380,8 @@ prometheus:
alertManagerNamespace: "" alertManagerNamespace: ""
thanos: thanos:
enabled: false enabled: false
livenessProbe: {}
readinessProbe: {}
global: global:
systemDefaultRegistry: "" systemDefaultRegistry: ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment