Duplicate imagePullSecrets prevents Sonarqube from rescheduling after node failure
Problem Description
On kubernetes 1.26.x (confirmed to exist on 1.26.3 and 1.26.4), in the event of a node failure, Sonarqube cannot be rescheduled and remains scheduled on a non-existent node because there are duplicate entries for imagePullSecrets
due to the way garbage collection works (likely a bug).
Steps to reproduce:
- Start a cluster on 1.26.3 or 1.26.4
- Deploy Sonarqube using the default values for the pull secrets
- Once fully deployed, terminate node hosting Sonarqube in cloud provider to simulate node failure
- Wait and see that all other pods but Sonarqube get rescheduled
Additional Info
imagePullSecrets
from pod spec:
See related issue in gitlab's chart gitlab#186 (closed)
Edited by Daniel Palmer