lwolf / stolon-chart

Kubernetes Helm chart to deploy HA Postgresql cluster based on Stolon
MIT License
105 stars 39 forks source link

Upgrade problems #35

Open Negashev opened 5 years ago

Negashev commented 5 years ago

Label In off chart is not updated after create app: {{ template "stolon.name" . }} https://github.com/helm/charts/blob/4527ebe8a36180ddd16973acddf476abe7264cfe/stable/stolon/templates/proxy-service.yaml#L6

In iwolf upgrade always if new version is deploy

https://github.com/lwolf/stolon-chart/blob/42e44c4241c29b06f70fafd034d1909498b0c559/stolon/templates/proxy-service.yaml#L7

app label change with problems on rancher

Installing
Failed to install app stolon-p-nkww4. Error: UPGRADE FAILED: Deployment.apps "stolon-p-nkww4-stolon-proxy" is invalid: spec.template.metadata.labels: Invalid value: map[string]string{"release":"stolon-p-nkww4", "stolon-cluster":"kube-stolon", "app":"stolon-p-nkww4-stolon-proxy", "chart":"stolon-0.8.1", "component":"stolon-proxy"}: `selector` does not match template `labels` && Deployment.apps "stolon-p-nkww4-stolon-sentinel" is invalid: spec.template.metadata.labels: Invalid value: map[string]string{"chart":"stolon-0.8.1", "component":"stolon-sentinel", "release":"stolon-p-nkww4", "stolon-cluster":"kube-stolon", "stolon-sentinel":"true", "app":"stolon-p-nkww4-stolon-sentinel"}: `selector` does not match template `labels` && StatefulSet.apps "stolon-p-nkww4-stolon-keeper" is invalid: spec.template.metadata.labels: Invalid value: map[string]string{"chart":"stolon-0.8.1", "component":"stolon-keeper", "release":"stolon-p-nkww4", "stolon-cluster":"kube-stolon", "app":"stolon-p-nkww4-stolon-keeper"}: `selector` does not match template `labels`
lwolf commented 5 years ago

I'm not sure I understand your issue. Are you trying to upgrade stolon installed by this [lwolf-charts/stolon] with stable/stolon?

Negashev commented 5 years ago

@lwolf No, I use only iwolf/stolon, and during the update, the version of the application changes in the labels, and the statefulsets are not updated as a result, the service does not find pods before rebooting

lwolf commented 5 years ago

I don't see how those labels could be the reason for the failed upgrade you described, at least not the labels you are changing in the attached PR.

Could you please provide steps to reproduce the issue?

Negashev commented 5 years ago

I can not simulate another update, but maybe this is a problem rancher that I use, but the problem is not reproduced on stable helm / stolon

lwolf commented 5 years ago

could you post the values.yaml file you use (with removed sensitive information like passwords) here?