Исправить ошибку с Nats в Yandex Cloud

1 500 руб.за час
04 марта 2024, 21:40 • 3 отклика • 48 просмотров
После обновления кубера с 1.21 до 1.28 начал отличать nats. Нужно решить проблему с доступностью

```time="2024-03-04T16:53:41Z" level=info msg="nats-operator is operating at the namespace scope in the \"default\" namespace"

E0304 16:53:41.791918 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:"7e026483-a1ff-4af8-a05d-9579a6bb08c7", ResourceVersion:"344280394", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63796230590, 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-74f4c74ff9-sck7b\",\"leaseDurationSeconds\":15,\"acquireTime\":\"2024-03-04T16:52:10Z\",\"renewTime\":\"2024-03-04T16:53:41Z\",\"leaderTransitions\":11}"}, 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)(0xc000579ca0), 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-74f4c74ff9-sck7b became leader'


time="2024-03-04T16:53:41Z" level=fatal msg="unexpected error while running the main control loop: the server could not find the requested resource"
```
```
time="2024-03-04T16:47:33Z" level=info msg="nats-operator Version: 0.8.2"
time="2024-03-04T16:47:33Z" level=info msg="Git SHA: 4f36153"
time="2024-03-04T16:47:33Z" level=info msg="Go Version: go1.15.6"
time="2024-03-04T16:47:33Z" level=info msg="Go OS/Arch: linux/amd64"
time="2024-03-04T16:47:33Z" level=info msg="nats-operator is operating at the namespace scope in the \"default\" namespace"
E0304 16:47:33.781372 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:"7e026483-a1ff-4af8-a05d-9579a6bb08c7", ResourceVersion:"344278169", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63796230590, 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-74f4c74ff9-g8kdn\",\"leaseDurationSeconds\":15,\"acquireTime\":\"2024-03-04T16:00:58Z\",\"renewTime\":\"2024-03-04T16:47:33Z\",\"leaderTransitions\":9}"}, 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)(0xc0005701e0), 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-74f4c74ff9-g8kdn became leader'
time="2024-03-04T16:47:33Z" level=fatal msg="unexpected error while running the main control loop: the server could not find the requested resource"
```
Файлы