fix(helm): remove busybox init container blocking backend startup

BusyBox 1.37 nc -z is broken (outputs "punt!" and never exits),
causing the wait-for-cache init container to loop indefinitely.
The cache is healthy — the backend should handle reconnects itself.
This commit is contained in:
2026-03-31 23:02:26 +02:00
parent 1b329b8222
commit ab2484474e

View File

@@ -29,29 +29,6 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.dragonfly.enabled }}
initContainers:
- name: wait-for-cache
image: busybox:1.37
resources:
requests:
cpu: 10m
memory: 16Mi
limits:
cpu: 50m
memory: 32Mi
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
command:
- sh
- -c
- |
echo "Waiting for cache..."
until nc -z {{ .Values.dragonfly.name }} 6379; do
sleep 3
done
echo "Cache is reachable"
{{- end }}
containers:
- name: backend
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"