|
| 1 | +{{- if not .Values.sdsReplicatedVolume.internal.newControlPlane }} |
1 | 2 | - name: kubernetes.linstor.node_state |
2 | 3 | rules: |
3 | 4 | - alert: D8LinstorNodeIsNotOnline |
|
12 | 13 | plk_grouped_by__d8_linstor_node_health: "D8LinstorNodeHealth,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes" |
13 | 14 | summary: LINSTOR node is not ONLINE |
14 | 15 | description: | |
15 | | - LINSTOR node {{ $labels.exported_node }} is not ONLINE |
| 16 | + LINSTOR node {{ "{{" }} $labels.exported_node {{ "}}" }} is not ONLINE |
16 | 17 |
|
17 | 18 | The recommended course of action: |
18 | | - 1. Check the LINSTOR node status: `kubectl exec -n d8-sds-replicated-volume deploy/linstor-controller -- linstor node list -n {{ $labels.exported_node }}` |
19 | | - 2. Check the Pod status: `kubectl -n d8-sds-replicated-volume get pod --field-selector=spec.nodeName={{ $labels.exported_node }} -l app=linstor-node` |
| 19 | + 1. Check the LINSTOR node status: `kubectl exec -n d8-sds-replicated-volume deploy/linstor-controller -- linstor node list -n {{ "{{" }} $labels.exported_node {{ "}}" }}` |
| 20 | + 2. Check the Pod status: `kubectl -n d8-sds-replicated-volume get pod --field-selector=spec.nodeName={{ "{{" }} $labels.exported_node {{ "}}" }} -l app=linstor-node` |
20 | 21 |
|
21 | 22 | - alert: D8LinstorSatelliteGrowingErrorReports |
22 | 23 | expr: sum by (hostname) (increase(linstor_error_reports_count{module="SATELLITE"}[5m])) >= 20 |
|
31 | 32 | plk_grouped_by__d8_linstor_node_health: "D8LinstorNodeHealth,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes" |
32 | 33 | summary: LINSTOR satellite has errors |
33 | 34 | description: | |
34 | | - LINSTOR satellite {{ $labels.hostname }} has continuously growing amount of error reports |
| 35 | + LINSTOR satellite {{ "{{" }} $labels.hostname {{ "}}" }} has continuously growing amount of error reports |
35 | 36 |
|
36 | 37 | The recommended course of action: |
37 | | - 1. Check the Pod logs: `kubectl -n d8-sds-replicated-volume logs $(kubectl -n d8-sds-replicated-volume get pod --field-selector=spec.nodeName={{ $labels.node }} -l app=linstor-node -o name) -c linstor-satellite` |
38 | | - 2. Check the LINSTOR error reports: `kubectl exec -n d8-sds-replicated-volume deploy/linstor-controller -- linstor err list -n {{ $labels.hostname }}` |
| 38 | + 1. Check the Pod logs: `kubectl -n d8-sds-replicated-volume logs $(kubectl -n d8-sds-replicated-volume get pod --field-selector=spec.nodeName={{ "{{" }} $labels.node {{ "}}" }} -l app=linstor-node -o name) -c linstor-satellite` |
| 39 | + 2. Check the LINSTOR error reports: `kubectl exec -n d8-sds-replicated-volume deploy/linstor-controller -- linstor err list -n {{ "{{" }} $labels.hostname {{ "}}" }}` |
39 | 40 |
|
40 | 41 | - alert: D8LinstorNodePodIsNotReady |
41 | 42 | expr: min by (pod) (avg by(node,pod,namespace)(kube_pod_info{}) * on(pod, namespace) group_right(node) kube_pod_status_ready{condition="true", namespace="d8-sds-replicated-volume", pod=~"linstor-node-.*"}) != 1 |
|
53 | 54 | description: | |
54 | 55 | The recommended course of action: |
55 | 56 | 1. Retrieve details of the Deployment: `kubectl -n d8-sds-replicated-volume describe daemonset linstor-node` |
56 | | - 2. View the status of the Pod and try to figure out why it is not running: `kubectl -n d8-sds-replicated-volume describe pod --field-selector=spec.nodeName={{ $labels.node }} -l app=linstor-node` |
| 57 | + 2. View the status of the Pod and try to figure out why it is not running: `kubectl -n d8-sds-replicated-volume describe pod --field-selector=spec.nodeName={{ "{{" }} $labels.node {{ "}}" }} -l app=linstor-node` |
57 | 58 |
|
58 | 59 | - alert: D8LinstorNodePodIsNotRunning |
59 | 60 | expr: absent(avg by(node,pod,namespace)(kube_pod_info{}) * on(pod, namespace) group_right(node) kube_pod_status_phase{namespace="d8-sds-replicated-volume",phase="Running",pod=~"linstor-node-.*"}) |
|
70 | 71 | description: | |
71 | 72 | The recommended course of action: |
72 | 73 | 1. Retrieve details of the DaemonSet: `kubectl -n d8-sds-replicated-volume describe daemonset linstor-node` |
73 | | - 2. View the status of the Pod and try to figure out why it is not running: `kubectl -n d8-sds-replicated-volume describe pod --field-selector=spec.nodeName={{ $labels.node }} -l app=linstor-node` |
| 74 | + 2. View the status of the Pod and try to figure out why it is not running: `kubectl -n d8-sds-replicated-volume describe pod --field-selector=spec.nodeName={{ "{{" }} $labels.node {{ "}}" }} -l app=linstor-node` |
| 75 | +{{- end }} |
0 commit comments