From 551038712998a1d9293786caee0caa2ccf6a6ab7 Mon Sep 17 00:00:00 2001 From: Jun Duan Date: Wed, 26 Jul 2023 13:30:49 -0400 Subject: [PATCH] improve apiserver service name for controller manager Signed-off-by: Jun Duan --- pkg/reconcilers/k8s/deployment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reconcilers/k8s/deployment.go b/pkg/reconcilers/k8s/deployment.go index 2c71607..f5091a6 100644 --- a/pkg/reconcilers/k8s/deployment.go +++ b/pkg/reconcilers/k8s/deployment.go @@ -291,7 +291,7 @@ func (r *K8sReconciler) generateCMDeployment(cpName, namespace string) (*appsv1. ImagePullPolicy: v1.PullIfNotPresent, Command: []string{ "kube-controller-manager", - fmt.Sprintf("--master=https://%s:%d", cpName, shared.SecurePort), + fmt.Sprintf("--master=https://%s:%d", cpName+"."+cpName+"-system", shared.SecurePort), "--authentication-kubeconfig=/etc/kubernetes/kubeconfig", "--authorization-kubeconfig=/etc/kubernetes/kubeconfig", "--bind-address=0.0.0.0",