The generic-garbage-collector deleted our StatefulSet prometheus-k8s and eventually also the corresponding pods. Which resulted in a ~5min outage of our monitoring system as all 3 pods were deleted at the same second.
Why did the generic-garbage-collector do this? What can it be?
The StatefulSet has this owner-reference which should stop deletion from garbage-collector (see K8s doc):
metadata:
ownerReferences:
- apiVersion: monitoring.coreos.com/v1
blockOwnerDeletion: true
controller: true
kind: Prometheus
name: k8s
uid: 68631aa0-e528-11e9-8769-42010a8400bf
I.e. it is created & controlled by the prometheus-operator.
Kubernetes/GKE cluster version: 1.19