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

Updates after changed pod template #49

Closed
fabxc opened this issue Nov 25, 2016 · 3 comments
Closed

Updates after changed pod template #49

fabxc opened this issue Nov 25, 2016 · 3 comments

Comments

@fabxc
Copy link
Contributor

fabxc commented Nov 25, 2016

Currently we just inspect the version suffix of the base image to determine whether all containers are in sync. We can change the entire pod template though and it the new resource field in the Prometheus TPR we actually do.

So we'd need something like pod_template_hash labels like Deployments use eventually.
It's all still up in the air how the PetSet controller will provide updates later on. If it will also use that label, we will be conflicting again.

Possibly we'd just do a an on the fly hash for now or simply track all mutable template fields until it's figured out what the PetSet controller will do.

@whereisaaron
Copy link
Contributor

I updated a Prometheus resource to add an externalUrl config. The statefulset was updated to add the command -web.external-url line argument, but the (single) pod was not recreated with the new argument. I had to manually delete the pod, which was them recreated with the new command line argument.

Is this problem caused by the issue you raise @fabxc?

I also notice that the creationTimestamp for the statefulsets and pvcs created by prometheus-operator are always null, that seems incorrect?

brancz added a commit to brancz/prometheus-operator that referenced this issue Mar 6, 2017
Documentation for adding kube-prometheus to K8s on AWS w KOPS.
@brancz
Copy link
Contributor

brancz commented Apr 6, 2017

StatefulSets are targeted to get rolling updates in 1.7, so we will just wait for that to land.

@brancz
Copy link
Contributor

brancz commented Jul 24, 2017

So rolling deployments have indeed landed in 1.7 and StatefulSets can be fully mutated without any errors. However, to automatically rollout these changes the Pods still have to be deleted manually, or we have to implement using the actual rolling deployments the StatefulSet now offers.

lilic pushed a commit to lilic/prometheus-operator that referenced this issue Mar 11, 2020
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

3 participants