helm: manage CoreDNS addon as Helm chart (#3236)

* helm: generate CoreDNS Helm chart
* helm: load CoreDNS Helm chart
* bootstrapper: don't install coredns addon
This commit is contained in:
Markus Rudy 2024-07-03 19:38:55 +02:00 committed by Markus Rudy
parent 807bbbfd16
commit 97c77e2a78
22 changed files with 689 additions and 69 deletions

View file

@ -48,7 +48,6 @@ type Client interface {
AddNodeSelectorsToDeployment(ctx context.Context, selectors map[string]string, name string, namespace string) error
ListAllNamespaces(ctx context.Context) (*corev1.NamespaceList, error)
AnnotateNode(ctx context.Context, nodeName, annotationKey, annotationValue string) error
EnforceCoreDNSSpread(ctx context.Context) error
PatchFirstNodePodCIDR(ctx context.Context, firstNodePodCIDR string) error
}
@ -150,7 +149,7 @@ func (k *KubernetesUtil) InitCluster(
// initialize the cluster
log.Info("Initializing the cluster using kubeadm init")
skipPhases := "--skip-phases=preflight,certs"
skipPhases := "--skip-phases=preflight,certs,addon/coredns"
if !conformanceMode {
skipPhases += ",addon/kube-proxy"
}