Fix migration job reloads and alert context
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Failing after 17m22s
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Failing after 17m22s
This commit is contained in:
1 parent
1991ffc1e3
commit
d1d28776cd
3 files changed
+11
-2
No files matched your search
@@ -46,14 +46,16 @@ spec:
|
|||||||
|
|
||||||
{{ if eq .Status "firing" }}🔴{{ else }}🟢{{ end }} {{ with .Annotations.summary }}<b>{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</b>{{ else }}<b>{{ .Labels.alertname | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</b>{{ end }}
|
{{ if eq .Status "firing" }}🔴{{ else }}🟢{{ end }} {{ with .Annotations.summary }}<b>{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</b>{{ else }}<b>{{ .Labels.alertname | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</b>{{ end }}
|
||||||
{{ with .Annotations.description }}{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}{{ end }}
|
{{ with .Annotations.description }}{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}{{ end }}
|
||||||
{{ if or .Labels.namespace .Labels.pod .Labels.container .Labels.node .Labels.instance }}
|
{{ if or .Labels.namespace .Labels.job_name .Labels.pod .Labels.container .Labels.node .Labels.instance }}
|
||||||
<b>Context</b>
|
<b>Context</b>
|
||||||
{{ with .Labels.namespace }}Namespace: <code>{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</code>{{ end }}
|
{{ with .Labels.namespace }}Namespace: <code>{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</code>{{ end }}
|
||||||
|
{{ with .Labels.job_name }}Job: <code>{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</code>{{ else }}
|
||||||
{{ with .Labels.pod }}Pod: <code>{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</code>{{ end }}
|
{{ with .Labels.pod }}Pod: <code>{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</code>{{ end }}
|
||||||
{{ with .Labels.container }}Container: <code>{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</code>{{ end }}
|
{{ with .Labels.container }}Container: <code>{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</code>{{ end }}
|
||||||
{{ with .Labels.node }}Node: <code>{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</code>{{ end }}
|
{{ with .Labels.node }}Node: <code>{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</code>{{ end }}
|
||||||
{{ if and (not .Labels.node) .Labels.instance }}Instance: <code>{{ .Labels.instance | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</code>{{ end }}
|
{{ if and (not .Labels.node) .Labels.instance }}Instance: <code>{{ .Labels.instance | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}</code>{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
Started: {{ .StartsAt | tz "Europe/London" | date "2006-01-02 15:04 MST" }}
|
Started: {{ .StartsAt | tz "Europe/London" | date "2006-01-02 15:04 MST" }}
|
||||||
<a href="{{ .GeneratorURL | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}">📈 Open graph</a>{{ with .Annotations.runbook_url }} · <a href="{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}">📖 Runbook</a>{{ end }}
|
<a href="{{ .GeneratorURL | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}">📈 Open graph</a>{{ with .Annotations.runbook_url }} · <a href="{{ . | reReplaceAll "&" "&" | reReplaceAll "<" "<" | reReplaceAll ">" ">" }}">📖 Runbook</a>{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
defaultRules:
|
defaultRules:
|
||||||
create: true
|
create: true
|
||||||
|
# Default rule descriptions reference $labels.cluster. Prometheus external
|
||||||
|
# labels are added only when alerts leave Prometheus, so attach the label to
|
||||||
|
# the rules as well to avoid messages ending with "on cluster .".
|
||||||
|
additionalRuleLabels:
|
||||||
|
cluster: hexor-ng
|
||||||
rules:
|
rules:
|
||||||
# k3s embeds these control-plane components and does not expose their
|
# k3s embeds these control-plane components and does not expose their
|
||||||
# conventional metrics Services. Disabling the groups prevents false pages.
|
# conventional metrics Services. Disabling the groups prevents false pages.
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ reloader:
|
|||||||
reloadStrategy: annotations
|
reloadStrategy: annotations
|
||||||
ignoreConfigMaps: false
|
ignoreConfigMaps: false
|
||||||
ignoreSecrets: false
|
ignoreSecrets: false
|
||||||
ignoreJobs: false
|
# Jobs are one-shot executions. Restarting completed Helm hooks after a
|
||||||
|
# referenced Secret changes can rerun migrations outside the release flow.
|
||||||
|
ignoreJobs: true
|
||||||
ignoreCronJobs: false
|
ignoreCronJobs: false
|
||||||
enableHA: true
|
enableHA: true
|
||||||
syncAfterRestart: true
|
syncAfterRestart: true
|
||||||
|
|||||||
Reference in new issue
Block a user