Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operator fails to run on Kubernetes v1.24 #345

Closed
l4z4rus opened this issue Jun 21, 2022 · 1 comment
Closed

Operator fails to run on Kubernetes v1.24 #345

l4z4rus opened this issue Jun 21, 2022 · 1 comment

Comments

@l4z4rus
Copy link

l4z4rus commented Jun 21, 2022

Hi,
I have deployed Kubernetes 1.24 and the nats operator fails to start:

$ kubectl logs hrs-eventbus-operator-5bbc459dcb-w45j6 -n hrs-dsn
time="2022-06-21T11:10:45Z" level=info msg="nats-operator Version: 0.8.2"
time="2022-06-21T11:10:45Z" level=info msg="Git SHA: 4f36153"
time="2022-06-21T11:10:45Z" level=info msg="Go Version: go1.15.6"
time="2022-06-21T11:10:45Z" level=info msg="Go OS/Arch: linux/amd64"
time="2022-06-21T11:10:45Z" level=info msg="nats-operator is operating at the namespace scope in the \"hrs-dsn\" namespace"
E0621 11:10:45.587582       1 event.go:296] Could not construct reference to: '&v1.Endpoints{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"nats-operator", GenerateName:"", Namespace:"hrs-dsn", SelfLink:"", UID:"0fdfa48c-7df7-4e9b-9a84-62c4efa2a1ac", ResourceVersion:"230141", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63791071428, 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\":\"hrs-eventbus-operator-5bbc459dcb-w45j6\",\"leaseDurationSeconds\":15,\"acquireTime\":\"2022-06-21T11:10:44Z\",\"renewTime\":\"2022-06-21T11:10:45Z\",\"leaderTransitions\":595}"}, 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)(0xc0000a2480), Fields:(*v1.Fields)(nil)}}}, Subsets:[]v1.EndpointSubset(nil)}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Normal' 'LeaderElection' 'hrs-eventbus-operator-5bbc459dcb-w45j6 became leader'
time="2022-06-21T11:10:45Z" level=fatal msg="unexpected error while running the main control loop: the server could not find the requested resource"

msg="unexpected error while running the main control loop: the server could not find the requested resource"

Kubernetes:

Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.1", GitCommit:"3ddd0f45aa91e2f30c70734b175631bec5b5825a", GitTreeState:"clean", BuildDate:"2022-05-24T12:26:19Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.1", GitCommit:"3ddd0f45aa91e2f30c70734b175631bec5b5825a", GitTreeState:"clean", BuildDate:"2022-05-24T12:18:48Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"linux/amd64"}
@l4z4rus
Copy link
Author

l4z4rus commented Jun 21, 2022

Hi,
I solved this problem by updating the image tag from natsio/nats-operator:0.8.2 to natsio/nats-operator:0.8.3 in the deployment.yaml downloaded at this link: https://github.com/nats-io/nats-operator/releases/download/v0.8.3/10-deployment.yaml, as reported there: #342

@l4z4rus l4z4rus closed this as completed Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant