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 }}
|
||||
{{ 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>
|
||||
{{ 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.container }}Container: <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 }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
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 }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
defaultRules:
|
||||
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:
|
||||
# k3s embeds these control-plane components and does not expose their
|
||||
# conventional metrics Services. Disabling the groups prevents false pages.
|
||||
|
||||
@@ -6,7 +6,9 @@ reloader:
|
||||
reloadStrategy: annotations
|
||||
ignoreConfigMaps: 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
|
||||
enableHA: true
|
||||
syncAfterRestart: true
|
||||
|
||||
Reference in new issue
Block a user