kelseyhightower / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way. No scripts.
Apache License 2.0
40.41k stars 13.85k forks source link

As of Kubernetes v1.28.3 the --apiserver-count flag should be removed from the kube-apiserver.service unit file #793

Open benjaminapetersen opened 1 month ago

benjaminapetersen commented 1 month ago

As of Kubernetes v1.28.3 the API server no longer recognizes --apiserver-count.

So on the server, the /etc/systemd/system/kube-apiserver.service should be edited to remove it:

[Unit]
Description=Kubernetes API Server
Documentation=https://github.com/kubernetes/kubernetes

ExecStart=/usr/local/bin/kube-apiserver \
  --allow-privileged=true \
  --apiserver-count=1 \                             # <-- eliminate this or the kube-apiserver will not start 
  --audit-log-maxage=30 \
  --audit-log-maxbackup=3 \
  --audit-log-maxsize=100 \