Replies: 1 comment 1 reply
-
Yes, this would not work if this was the only node in the cluster. However, this is meant to be used on an etcd-only server - one with all the Kubernetes control-plane components disabled. You'll notice that it's run in a goroutine so that it does not block. It will wait for another server node to come up and host the Kubernetes control-plane, at which point it will set the correct labels and annotations on this node. Are you running into some problem with this code, or just trying to understand the flow? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
k3s/pkg/server/server.go
Lines 81 to 85 in 3f5774b
Function
setETCDLabelsAndAnnotations()
creates a kube client (like kubectl) to do its job, it needs APIServer to run. So why call it when APIServer is disabled, which will fail for 100% sure.It is fine though, the
--disable-apiserver
is experimental. P.S., I am looking at the tag 1.22.2+k3s2.Beta Was this translation helpful? Give feedback.
All reactions