-
Notifications
You must be signed in to change notification settings - Fork 18
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
Pod/Deployment doesn't restart although recognized by the operator #6
Comments
Hi @rchenzheng! 👋 Thanks for sending this in and providing excellent details! The problem here is that the Doppler operator currently monitors deployment resources, not pods. Here's an example deployment that uses reloading: https://github.com/DopplerHQ/kubernetes-operator/blob/main/config/samples/deployment-envfrom.yaml You should be able to change your pod definition to a deployment definition by moving the current spec into the Is there any reason why you might want to use a pod instead of a deployment? |
This is currently a POC, but I'd like if it could support all type of workloads since my use cases make use of most. ie. statefulsets, daemonsets, replicasets, etc... |
Ah, understood -- thanks for the feedback! I'll bring up those use cases with the team. |
I think it'd be a fairly common use case, is there any timeline for adding support? |
We don't have a timeline currently for adding support for other Kubernetes workloads. In the meantime though, one solution would be to use the Doppler operator to sync secrets from Doppler to Kubernetes and use another reloading solution (such as Reloader) to automatically restart your workloads when those secrets change. |
Would like to request this also. Usually you have an annotation on the pod spec that a controller would update and that would trigger a restart. |
Versions
Server Version: version.Info{Major:"1", Minor:"18+", GitVersion:"v1.18.17-gke.1901", GitCommit:"b5bc948aea9982cd8b1e89df8d50e30ffabdd368", GitTreeState:"clean", BuildDate:"2021-05-27T19:56:12Z", GoVersion:"go1.13.15b4", Compiler:"gc", Platform:"linux/amd64"}
Operator: v0.1.0
Problem
Pod does not restart even though the secret was updated
Expected result
Pod should restart as soon as the secret is updated, instead only the secret gets updated
Logs
Configs
The text was updated successfully, but these errors were encountered: