cozystack/packages/system/coredns
mattia-eleuteri 7320edd71d
fix coredns serviceaccount to match kubernetes bootstrap rbac
The Kubernetes bootstrap creates a ClusterRoleBinding 'system:kube-dns'
that references ServiceAccount 'kube-dns' in 'kube-system'. However,
the coredns chart was using the 'default' ServiceAccount because
serviceAccount.create was not enabled.

This caused CoreDNS pods to fail with 'Failed to watch' errors after
restarts, as they lacked RBAC permissions to watch the Kubernetes API.

Configure the chart to create the 'kube-dns' ServiceAccount, which
matches the expected binding from Kubernetes bootstrap.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: mattia-eleuteri <mattia@hidora.io>
2026-02-02 15:32:50 +01:00
..
charts/coredns [tenant-k8s] change coredns 2025-08-28 12:06:46 +03:00
Chart.yaml [tenant-k8s] change coredns 2025-08-28 12:06:46 +03:00
Makefile refactor: move scripts to hack directory 2026-01-15 16:06:56 +01:00
values.yaml fix coredns serviceaccount to match kubernetes bootstrap rbac 2026-02-02 15:32:50 +01:00