nats-io/nats-operator

Could not construct reference to Endpoints

ekmobile opened this issue · 1 comments

I'm using Kubernetes 1.27.2 on Docker Desktop for macOS. I reset the Kubernetes Cluster before running any command.

After running

$ kubectl apply -f https://github.com/nats-io/nats-operator/releases/latest/download/00-prereqs.yaml
$ kubectl apply -f https://github.com/nats-io/nats-operator/releases/latest/download/10-deployment.yaml

as described at https://github.com/nats-io/nats-operator I get the following error:

time="2023-08-09T08:37:02Z" level=info msg="nats-operator Version: 0.8.2"
time="2023-08-09T08:37:02Z" level=info msg="Git SHA: 4f36153"
time="2023-08-09T08:37:02Z" level=info msg="Go Version: go1.15.6"
time="2023-08-09T08:37:02Z" level=info msg="Go OS/Arch: linux/amd64"
time="2023-08-09T08:37:02Z" level=info msg="nats-operator is operating at the namespace scope in the \"default\" namespace"
E0809 08:37:02.575012       1 event.go:296] Could not construct reference to: '&v1.Endpoints{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"nats-operator", GenerateName:"", Namespace:"default", SelfLink:"", UID:"e1bcb3da-edbd-441b-99da-190d9814e162", ResourceVersion:"700", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63827166999, loc:(*time.Location)(0x1dec6c0)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{"control-plane.alpha.kubernetes.io/leader":"{\"holderIdentity\":\"nats-operator-84d9d958b9-fr467\",\"leaseDurationSeconds\":15,\"acquireTime\":\"2023-08-09T08:36:39Z\",\"renewTime\":\"2023-08-09T08:37:02Z\",\"leaderTransitions\":0}"}, OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry{v1.ManagedFieldsEntry{Manager:"nats-operator", Operation:"Update", APIVersion:"v1", Time:(*v1.Time)(0xc0003d5d00), Fields:(*v1.Fields)(nil)}}}, Subsets:[]v1.EndpointSubset(nil)}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Normal' 'LeaderElection' 'nats-operator-84d9d958b9-fr467 became leader'
time="2023-08-09T08:37:02Z" level=fatal msg="unexpected error while running the main control loop: the server could not find the requested resource"

Thanks for you help.

Same result with Minikube v1.31.1, Darwin 13.4.1, Kubernetes 1.27.3