From 3b50b20d1b4f5855368b6ea65ed95e0e8e8c5e93 Mon Sep 17 00:00:00 2001 From: Ben Petersen Date: Sun, 7 Jul 2024 15:02:44 -0400 Subject: [PATCH] Update kube-apiserver.service to remove --apiserver-count flag As of at least Kubernetes v1.28.3 (perhaps older) the --apiserver-count is no longer documented in the [api server flags](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/) list. It's presence in the `/etc/systemd/system/kube-apiserver.service` file prevents the API server from starting properly. --- units/kube-apiserver.service | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/units/kube-apiserver.service b/units/kube-apiserver.service index 1a0b035..13fe0ec 100644 --- a/units/kube-apiserver.service +++ b/units/kube-apiserver.service @@ -5,7 +5,6 @@ Documentation=https://github.com/kubernetes/kubernetes [Service] ExecStart=/usr/local/bin/kube-apiserver \ --allow-privileged=true \ - --apiserver-count=1 \ --audit-log-maxage=30 \ --audit-log-maxbackup=3 \ --audit-log-maxsize=100 \ @@ -33,4 +32,4 @@ Restart=on-failure RestartSec=5 [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target