kubernetes-sigs / lws

LeaderWorkerSet: An API for deploying a group of pods as a unit of replication
Apache License 2.0
141 stars 27 forks source link

two lws-controller-manager instance? #264

Closed ltm920716 closed 2 days ago

ltm920716 commented 5 days ago

What happened: I get two lws-controller-manager instance,I am not sure is that right?

What you expected to happen: one lws-controller-manager instance? and the instance should be start on master node,not worker node?

How to reproduce it (as minimally and precisely as possible):

VERSION=v0.4.2
kubectl apply --server-side -f https://github.com/kubernetes-sigs/lws/releases/download/$VERSION/manifests.yaml
kc get pod -n lws-system

1732179711447

Anything else we need to know?: no

Environment:

Edwinhr716 commented 4 days ago

Check #19. On versions 0.4.0 and later two replicas of the LWS controller are deployed https://github.com/kubernetes-sigs/lws/blob/main/config/manager/manager.yaml#L31. Only one is active https://github.com/kubernetes-sigs/lws/blob/main/cmd/main.go#L77

ltm920716 commented 2 days ago

ok,thanks!