CodeTogether-Inc / CodeTogether-Live

Repository for issues, documentation and more for codetogether.com and associated VS Code extension and Eclipse plugins.
Other
103 stars 12 forks source link

Helm-Chart: Automatically Roll Deployments #369

Closed hupling closed 2 years ago

hupling commented 2 years ago

Describe the bug

If I change for example the sso config in the helm chart, so config isn't taken from the pod. The pod needs to be manual restarted.

Solution

https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments

kind: Deployment
spec:
  template:
    metadata:
      annotations:
        checksum/coturn: {{ include (print $.Template.BasePath "/secret-coturn.yaml") . | sha256sum }}
        checksum/dashboard: {{ include (print $.Template.BasePath "/secret-dashboard.yaml") . | sha256sum }}
        checksum/license: {{ include (print $.Template.BasePath "/secret-license.yaml") . | sha256sum }}
        checksum/sso: {{ include (print $.Template.BasePath "/secret-sso.yaml") . | sha256sum }}
GenuitecKanbot commented 2 years ago

Happy to report this issue is resolved! (from Kanbanbot)