monitoring: KEEL/tier ignore_changes on 5 exporters [ci skip]
goflow2, snmp-exporter, pve-exporter, idrac-redfish and the sysctl-inotify
daemonset were missed by the cdb7d9a8 KEEL_LIFECYCLE sweep. The monitoring ns
is keel-enrolled (policy=patch) so Keel owns their image tags + injects keel.sh
annotations; TF kept trying to revert both, plus a live-stamped tier label —
which made `terragrunt plan -detailed-exitcode` return 2 every run and the
drift-detection cron fail daily. Add the standard KEEL ignore_changes (image +
keel.sh annotations) and ignore the tier label so these stop churning.
Declarative-only: takes effect at next plan, no apply needed. [ci skip] so this
does not trigger a monitoring apply. Remaining (separate) drift: the grafana
ACL null_resource (triggers.always) + tls cert refresh.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
935fb07df7
commit
e5d9160a88
5 changed files with 111 additions and 50 deletions
|
|
@ -52,7 +52,19 @@ resource "kubernetes_deployment" "goflow2" {
|
||||||
}
|
}
|
||||||
lifecycle {
|
lifecycle {
|
||||||
# KYVERNO_LIFECYCLE_V1: Kyverno admission webhook mutates dns_config with ndots=2
|
# KYVERNO_LIFECYCLE_V1: Kyverno admission webhook mutates dns_config with ndots=2
|
||||||
ignore_changes = [spec[0].template[0].spec[0].dns_config]
|
# KEEL: monitoring ns is keel-enrolled (policy=patch) — Keel owns the image
|
||||||
|
# tag and injects keel.sh annotations. Ignore so TF stops reverting Keel each
|
||||||
|
# plan (completes the cdb7d9a8 KEEL sweep that missed these exporters and was
|
||||||
|
# tripping drift-detection exit 2 every run). 2026-05-31.
|
||||||
|
ignore_changes = [
|
||||||
|
spec[0].template[0].spec[0].dns_config,
|
||||||
|
spec[0].template[0].spec[0].container[0].image, # KEEL_IGNORE_IMAGE
|
||||||
|
metadata[0].annotations["keel.sh/policy"],
|
||||||
|
metadata[0].annotations["keel.sh/trigger"],
|
||||||
|
metadata[0].annotations["keel.sh/pollSchedule"],
|
||||||
|
metadata[0].annotations["keel.sh/match-tag"],
|
||||||
|
spec[0].template[0].metadata[0].annotations["keel.sh/update-time"], # KEEL_LIFECYCLE_V1
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,19 @@ resource "kubernetes_deployment" "idrac-redfish" {
|
||||||
}
|
}
|
||||||
lifecycle {
|
lifecycle {
|
||||||
# KYVERNO_LIFECYCLE_V1: Kyverno admission webhook mutates dns_config with ndots=2
|
# KYVERNO_LIFECYCLE_V1: Kyverno admission webhook mutates dns_config with ndots=2
|
||||||
ignore_changes = [spec[0].template[0].spec[0].dns_config]
|
# KEEL: monitoring ns is keel-enrolled (policy=patch) — Keel owns the image
|
||||||
|
# tag and injects keel.sh annotations. Ignore so TF stops reverting Keel each
|
||||||
|
# plan (completes the cdb7d9a8 KEEL sweep that missed these exporters and was
|
||||||
|
# tripping drift-detection exit 2 every run). 2026-05-31.
|
||||||
|
ignore_changes = [
|
||||||
|
spec[0].template[0].spec[0].dns_config,
|
||||||
|
spec[0].template[0].spec[0].container[0].image, # KEEL_IGNORE_IMAGE
|
||||||
|
metadata[0].annotations["keel.sh/policy"],
|
||||||
|
metadata[0].annotations["keel.sh/trigger"],
|
||||||
|
metadata[0].annotations["keel.sh/pollSchedule"],
|
||||||
|
metadata[0].annotations["keel.sh/match-tag"],
|
||||||
|
spec[0].template[0].metadata[0].annotations["keel.sh/update-time"], # KEEL_LIFECYCLE_V1
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,20 @@ resource "kubernetes_daemon_set_v1" "sysctl-inotify" {
|
||||||
}
|
}
|
||||||
lifecycle {
|
lifecycle {
|
||||||
# KYVERNO_LIFECYCLE_V1: Kyverno admission webhook mutates dns_config with ndots=2
|
# KYVERNO_LIFECYCLE_V1: Kyverno admission webhook mutates dns_config with ndots=2
|
||||||
ignore_changes = [spec[0].template[0].spec[0].dns_config]
|
# KEEL: monitoring ns is keel-enrolled — Keel owns the pause image tag and
|
||||||
|
# injects keel.sh annotations. Ignore so TF stops reverting Keel each plan
|
||||||
|
# (completes the cdb7d9a8 KEEL sweep that missed this daemonset and was
|
||||||
|
# tripping drift-detection exit 2 every run). 2026-05-31.
|
||||||
|
ignore_changes = [
|
||||||
|
spec[0].template[0].spec[0].dns_config,
|
||||||
|
spec[0].template[0].spec[0].container[0].image, # KEEL_IGNORE_IMAGE
|
||||||
|
metadata[0].annotations["keel.sh/policy"],
|
||||||
|
metadata[0].annotations["keel.sh/trigger"],
|
||||||
|
metadata[0].annotations["keel.sh/pollSchedule"],
|
||||||
|
metadata[0].annotations["keel.sh/match-tag"],
|
||||||
|
spec[0].template[0].metadata[0].annotations["keel.sh/update-time"], # KEEL_LIFECYCLE_V1
|
||||||
|
metadata[0].labels["tier"], # tier stamped live by tier-labeling; TF doesn't declare it here
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,19 @@ resource "kubernetes_deployment" "pve_exporter" {
|
||||||
}
|
}
|
||||||
lifecycle {
|
lifecycle {
|
||||||
# KYVERNO_LIFECYCLE_V1: Kyverno admission webhook mutates dns_config with ndots=2
|
# KYVERNO_LIFECYCLE_V1: Kyverno admission webhook mutates dns_config with ndots=2
|
||||||
ignore_changes = [spec[0].template[0].spec[0].dns_config]
|
# KEEL: monitoring ns is keel-enrolled (policy=patch) — Keel owns the image
|
||||||
|
# tag and injects keel.sh annotations. Ignore so TF stops reverting Keel each
|
||||||
|
# plan (completes the cdb7d9a8 KEEL sweep that missed these exporters and was
|
||||||
|
# tripping drift-detection exit 2 every run). 2026-05-31.
|
||||||
|
ignore_changes = [
|
||||||
|
spec[0].template[0].spec[0].dns_config,
|
||||||
|
spec[0].template[0].spec[0].container[0].image, # KEEL_IGNORE_IMAGE
|
||||||
|
metadata[0].annotations["keel.sh/policy"],
|
||||||
|
metadata[0].annotations["keel.sh/trigger"],
|
||||||
|
metadata[0].annotations["keel.sh/pollSchedule"],
|
||||||
|
metadata[0].annotations["keel.sh/match-tag"],
|
||||||
|
spec[0].template[0].metadata[0].annotations["keel.sh/update-time"], # KEEL_LIFECYCLE_V1
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,19 @@ resource "kubernetes_deployment" "snmp-exporter" {
|
||||||
}
|
}
|
||||||
lifecycle {
|
lifecycle {
|
||||||
# KYVERNO_LIFECYCLE_V1: Kyverno admission webhook mutates dns_config with ndots=2
|
# KYVERNO_LIFECYCLE_V1: Kyverno admission webhook mutates dns_config with ndots=2
|
||||||
ignore_changes = [spec[0].template[0].spec[0].dns_config]
|
# KEEL: monitoring ns is keel-enrolled (policy=patch) — Keel owns the image
|
||||||
|
# tag and injects keel.sh annotations. Ignore so TF stops reverting Keel each
|
||||||
|
# plan (completes the cdb7d9a8 KEEL sweep that missed these exporters and was
|
||||||
|
# tripping drift-detection exit 2 every run). 2026-05-31.
|
||||||
|
ignore_changes = [
|
||||||
|
spec[0].template[0].spec[0].dns_config,
|
||||||
|
spec[0].template[0].spec[0].container[0].image, # KEEL_IGNORE_IMAGE
|
||||||
|
metadata[0].annotations["keel.sh/policy"],
|
||||||
|
metadata[0].annotations["keel.sh/trigger"],
|
||||||
|
metadata[0].annotations["keel.sh/pollSchedule"],
|
||||||
|
metadata[0].annotations["keel.sh/match-tag"],
|
||||||
|
spec[0].template[0].metadata[0].annotations["keel.sh/update-time"], # KEEL_LIFECYCLE_V1
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue