diff --git a/config/default/manager_webhook_patch.yaml b/config/default/manager_webhook_patch.yaml index 5859c7f8510..b3511784f83 100644 --- a/config/default/manager_webhook_patch.yaml +++ b/config/default/manager_webhook_patch.yaml @@ -9,7 +9,7 @@ spec: containers: - name: manager ports: - - containerPort: 443 + - containerPort: 9443 name: webhook-server protocol: TCP - containerPort: 8081 diff --git a/config/webhook/service.yaml b/config/webhook/service.yaml index b4861025ab4..c8eb44562f0 100644 --- a/config/webhook/service.yaml +++ b/config/webhook/service.yaml @@ -6,7 +6,7 @@ metadata: namespace: system spec: ports: - - port: 443 - targetPort: 443 + - port: 9443 + targetPort: 9443 selector: control-plane: controller-manager diff --git a/main.go b/main.go index ab577f58258..c6b1f5828db 100644 --- a/main.go +++ b/main.go @@ -112,6 +112,7 @@ func main() { MetricsBindAddress: metricsAddr, LeaderElection: enableLeaderElection, LivenessEndpointName: "/healthz", + Port: 9443, }) if err != nil {