Hi Guys, I am trying to create whole kubernetes from scratch. So far I was able . . .

Magicsun:
Hi Guys, I am trying to create whole kubernetes from scratch. So far I was able establish kubelet , etcd and when I am trying to establish Kube-apiserver with below setting and trying to curl localhost I am getting connection refused error although I made it open using ufw in ubuntu 21.04. Any help is appreciated. Kube-apiserver setting: kube-apiserver
–allow-privileged=true
–anonymous-auth=false
–service-cluster-ip-range=10.0.0.0/16
–etcd-servers=http://localhost:2379
–advertise-address=0.0.0.0
–bind-address=0.0.0.0
–disable-admission-plugins=ServiceAccount
–service-account-key-file=/var/run/kubernetes/apiserver.crt
–service-account-signing-key-file=/var/run/kubernetes/apiserver.key
–service-account-issuer=api
–kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
&> /tmp/apiserver.log & and then tried to -->curl http://localhost:8080/api/v1/nodes gives me this error: curl: (7) Failed to connect to localhost port 8080: Connection refused.

Mohamed Ayman:
on kube-apiserver servcie check this value --runtime-config=api/all=true|false . on your file the parameter --runtime-config=api/all it is not set to any value (true/false) then restart the daemon-reload and kube-apiserver service