-
Notifications
You must be signed in to change notification settings - Fork 112
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
NATS cluster bound tokens randomly being deleted #310
Comments
having the exact same issue with the same config :( |
Probably worth mentioning that operator gives these logs when the problem occurs (usually just for one of the many disappeared secrets):
Currently on EKS 1.19 |
Hello @hpdobrica did you find any solution for this issue? We are still stuck with this issue. thanks. |
Hey @gaja-hp, we didn't exactly "find a solution", but we mitigated the issue by moving away from service account authentication towards using basic authentication. However, I might have an idea why the issue is occuring: The deletion process is fueled by k8s ownerReferences - the idea is that once NatsServiceRole is deleted, the secret will be deleted as well because NatsServiceRole is its owner. I believe the problem exists because ownerReference connection is not meant to function accross different namespaces |
Hello!
I am using the following setup on Kubernetes v1.18.9 (EKS):
nats-operator
natsio/nats-operator:0.8.2
clusterScoped: true
optionnats-cluster
nats:2.1.9
nats-streaming
I am unable to catch any logs related with errors or warns in nats-operator, nats-cluster and nats-streaming.
The deletion is being random - to restore proper config, I have to reload all affected NatsServiceRoles created for my services.
My services are using the following config for NetsServiceRole:
Moreover, the secrets for my services are being deleted, but for the nats-streaming, not.
Also configuration that is stored in nats-cluster secret (
nats.conf
) is not touched when bound tokens are deleted.Please ping me back which information should I provide to create better description of the issue.
Thanks!
The text was updated successfully, but these errors were encountered: