From c83e7d61ac5fd59db9e301cd39c070d5507b41f9 Mon Sep 17 00:00:00 2001 From: thr Date: Mon, 19 Feb 2024 18:06:24 +0100 Subject: [PATCH] using of Stakater Reloader --- .../examples/stakater-reloader/README.md | 14 ++++++++++++++ microservicesruntime/helm/README.md.gotmpl | 1 + 2 files changed, 15 insertions(+) create mode 100644 microservicesruntime/examples/stakater-reloader/README.md diff --git a/microservicesruntime/examples/stakater-reloader/README.md b/microservicesruntime/examples/stakater-reloader/README.md new file mode 100644 index 0000000..d1ab90d --- /dev/null +++ b/microservicesruntime/examples/stakater-reloader/README.md @@ -0,0 +1,14 @@ +# Using of Stakater Reloader + +Per default, the Microservices Runtime pod is not restarted on unchanged `application.properties` file between Helm release upgrades. The [Stakataer Reloader](https://github.com/stakater/Reloader) can solve and help this issue. + +## Increase `values.yaml` + +Add following value in `podAnnotations` to define the dependency between deployment and config map ... + +``` +podAnnotations: + configmap.reloader.stakater.com/reload: "{{ include \"common.names.fullname\" . }}" +``` + +If the ConfigMap (evaluated by `{{ include \"common.names.fullname\" . }}`) with `application.properties` file is changed, [Stakataer Reloader](https://github.com/stakater/Reloader) restarts the pod. \ No newline at end of file diff --git a/microservicesruntime/helm/README.md.gotmpl b/microservicesruntime/helm/README.md.gotmpl index 9608dc6..95bd106 100644 --- a/microservicesruntime/helm/README.md.gotmpl +++ b/microservicesruntime/helm/README.md.gotmpl @@ -59,6 +59,7 @@ Sub-folder `examples` contains some *values* examples for more use-cases. To use | [msr-with-tls](../examples/msr-with-tls/README.md) | Configure Ingress with TLS | | [process-engine](../examples/process-engine/README.md) | Deploy MSR as Process Engine | | [service-auditing-monitor](../examples/service-auditing-monitor/README.md) | Deploy MSR as Service Auditing Monitor | +| [Stakater Reloader](../examples/stakater-reloader/README.md) | Utility to restart MSR pod on configuration changes | ## Install Microservices Runtime Release