Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityDave Plummer Has Made the Task Manager of Your Dreams(21.09.2026 um 21:20 Uhr)
Sichere ProgrammierungSubqueries and CTEs: Asking a Question Inside a Question(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungTVL Trend Analysis & Liquidity Risk Assessment: Lido(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungReact is Officially Dead in 2026 (Thanks to AI)(21.09.2026 um 21:01 Uhr)
Sichere ProgrammierungUsing SHA256 to Build Trustworthy Data Portals in Brazil(21.09.2026 um 21:01 Uhr)
Sichere Programmierung🚀 I reached 1,001 views on DEV!(21.09.2026 um 21:03 Uhr)
Sichere ProgrammierungReact Mental Models 2(21.09.2026 um 21:05 Uhr)
Sichere ProgrammierungAustralian RAM and SSD prices climb as stock tightens(21.09.2026 um 21:09 Uhr)
Windows Tipps & SecurityDave Plummer Has Made the Task Manager of Your Dreams(21.09.2026 um 21:20 Uhr)
Sichere ProgrammierungSubqueries and CTEs: Asking a Question Inside a Question(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungTVL Trend Analysis & Liquidity Risk Assessment: Lido(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungReact is Officially Dead in 2026 (Thanks to AI)(21.09.2026 um 21:01 Uhr)
Sichere ProgrammierungUsing SHA256 to Build Trustworthy Data Portals in Brazil(21.09.2026 um 21:01 Uhr)
Sichere Programmierung🚀 I reached 1,001 views on DEV!(21.09.2026 um 21:03 Uhr)
Sichere ProgrammierungReact Mental Models 2(21.09.2026 um 21:05 Uhr)
Sichere ProgrammierungAustralian RAM and SSD prices climb as stock tightens(21.09.2026 um 21:09 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Kubernetes Persistence Series Part 1: When Our Ingress Vanished After a Node Upgrade

What You'll Learn Why manually-applied Kubernetes resources can disappear after pod evictions How NGINX Ingress admission webhooks validate resources The difference between controller-managed and manually-applied resources Why…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




What You'll Learn




  • Why manually-applied Kubernetes resources can disappear after pod evictions

  • How NGINX Ingress admission webhooks validate resources

  • The difference between controller-managed and manually-applied resources

  • Why Helm-managed resources survive node disruptions









The Problem That Started This Journey



It was a regular Monday morning until the alerts fired: Grafana was unreachable.



When GKE performed automatic node upgrades, our monitoring dashboard disappeared. The investigation that followed revealed a fascinating chain of dependencies—and ultimately led to understanding the elegant hierarchical supervision model that keeps Kubernetes running.



But first, let's solve the immediate problem.






The Incident: Why Ingress Disappeared






What Happened



The sequence of events:





  1. GKE automatically upgraded nodes (routine security patches)


  2. Nodes were drained, causing pod evictions


  3. NGINX Ingress Controller pod was evicted and restarted on a new node

  4. Grafana ingress resource disappeared

  5. Service became inaccessible



The puzzling part: why would an Ingress resource disappear when only pods were evicted? Ingress is a Kubernetes object stored in etcd—it shouldn't just vanish.






The Investigation






# Check if the ingress exists
kubectl get ingress -n monitoring
# No resources found

# Check the NGINX controller logs
kubectl logs -n ingress-nginx deploy/ingress-nginx-controller | grep -i error






The logs revealed admission webhook failures during the controller restart.






Root Cause Discovery



The ingress disappeared because of a perfect storm of issues:




![Root Cause Flowchart](https://mermaid.ink/img/base64:Zmxvd2NoYXJ0IFRECiAgICBBW05vZGUgVXBncmFkZSBUcmlnZ2VyZWRdIC0tPiBCW1BvZHMgRXZpY3RlZF0KICAgIEIgLS0+IENbTkdJTlggQ29udHJvbGxlciBSZXN0YXJ0c10KICAgIEMgLS0+IERbQ29udHJvbGxlciBWYWxpZGF0ZXMgRXhpc3RpbmcgSW5ncmVzc2VzXQogICAgRCAtLT4gRXtUTFMgU2VjcmV0IEV4aXN0cz99CiAgICBFIC0tPnxOb3wgRltWYWxpZGF0aW9uIEZhaWxzXQogICAgR
+ iAtLT4gR1tJbmdyZXNzIFJlamVjdGVkL1JlbW92ZWRdCiAgICBFIC0tPnxZZXN8IEhbSW5ncmVzcyBIZWFsdGh5XQogICAgc3R5bGUgRiBmaWxsOiNmZjZiNmIKICAgIHN0eWxlIEcgZmlsbDojZmY2YjZiCiAgICBzdHlsZSBIIGZpbGw6IzUxY2Y2Ngo=)






The chain of failures:




  1. TLS Secret was missing — It was manually copied to the cluster months ago, not managed by any controller. When the namespace was recreated during troubleshooting, the secret didn't come back.


  2. NGINX Admission Webhook — The NGINX Ingress Controller includes a validating webhook that checks ingress resources on creation and updates.


  3. Validation Failed — Without the TLS secret referenced in the ingress spec, the webhook rejected the ingress as invalid.


  4. No Reconciliation — The ingress was created via kubectl apply (not Helm or an operator), so nothing knew to recreate it.







The "Aha" Moment



The real issue wasn't the node upgrade—it was our resource management approach:




# Our original ingress (manually applied)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: grafana
namespace: monitoring
# No owner reference
# No Helm labels
# No operator management
spec:
tls:
- hosts:
- grafana.prod.example.com
secretName: grafana-tls # This secret was also manually created!
rules:
- host: grafana.prod.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: grafana
port:
number: 80






When this ingress needed to be recreated, nothing knew it should exist.






The Solution: Helm-Managed Resources



We solved this by migrating to Helm charts with native ingress support:




# Before: manually applied resources scattered across yaml files
kubectl apply -f grafana-ingress.yaml
kubectl apply -f grafana-tls-secret.yaml

# After: Helm manages everything as a single release
helm upgrade --install monitoring prometheus-community/kube-prometheus-stack \
--namespace monitoring \
--set grafana.ingress.enabled=true \
--set grafana.ingress.hosts[0]=grafana.prod.example.com \
--set grafana.ingress.tls[0].secretName=grafana-tls \
--set grafana.ingress.tls[0].hosts[0]=grafana.prod.example.com









Why This Works



Helm stores release state in Kubernetes secrets:




kubectl get secrets -n monitoring -l owner=helm
# NAME TYPE DATA
# sh.helm.release.v1.monitoring.v1 helm.sh/release.v1 1






This means:




  • ✅ Helm knows what resources should exist

  • helm upgrade recreates missing resources

  • ✅ Resources are versioned and can be rolled back

  • ✅ Dependencies (like TLS secrets) are managed together






For the TLS Secret



We also moved TLS management to cert-manager:




apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: grafana-tls
namespace: monitoring
spec:
secretName: grafana-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
dnsNames:
- grafana.prod.example.com






Now cert-manager (an operator) ensures the TLS secret always exists and stays renewed.






Key Takeaways






What Survives Pod Evictions






































Resource Type Survives? Why
Helm-managed resources State stored in release secrets
Operator-managed CRs Operator reconciles continuously
Resources with owner references Parent controller recreates them
Manually kubectl apply'd resources ⚠️ Survives in etcd, but won't be recreated if deleted
Resources referencing missing dependencies Validation webhooks may reject them





Best Practices





  1. Never manually apply production resources — Use Helm, Kustomize, or GitOps tools


  2. Manage secrets with operators — External Secrets, cert-manager, Sealed Secrets


  3. Understand admission webhooks — They validate resources on every create/update


  4. Test node disruptions — Use kubectl drain in staging regularly






The Deeper Question



This incident was resolved, but it raised a fundamental question:




How do controllers like Helm, NGINX Ingress, and cert-manager survive pod evictions themselves? What ensures THEY come back?




The answer involves a beautiful hierarchical supervision model that goes all the way down to Linux PID 1.



In Part 2, we'll explore the complete Kubernetes persistence chain—from Linux systemd to application controllers—and understand why Kubernetes is designed to assume failure is normal.






Have you experienced similar "ghost" resources disappearing in Kubernetes? Share your war stories in the comments!






Next in this series: Part 2: The Kubernetes Hierarchical Supervision Model — From systemd to Application Controllers

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Kubernetes Persistence Series Part 1: When Our Ingress Vanished After a Node Upgrade

Thematisch verwandte Begriffe: Kubernetes, Persistence, Series, Part · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94494 | jshERP through 3.6 contains a tenant isolation bypass vulnerability that…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick