kelseyhightower / kubernetes-the-hard-way

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

kube-apiserver.service file startup issue fix #619

Open Nightreaver opened 4 years ago

Nightreaver commented 4 years ago

removed the single quotes from --runtime-config in kube-apiserver.service

Issue

current version will create a service file with --runtime-config='api/all=true' inside, which will interpreted by kubernetes as

Nov 18 22:55:28 controller-1.maas kube-apiserver[15474]: I1118 22:55:28.734101 15474 flags.go:33] FLAG: --runtime-config="'api/all=true'"
which will fail with
Nov 18 22:55:28 controller-1.maas kube-apiserver[15474]: Error: unknown api groups 'api which will cause the apiserver so fail

removing the single quotes will solve this issue

V0idk commented 2 years ago

super good job