Camunda Run - 覆盖/更改配置设置

问题描述 投票:0回答:1

我正在使用社区提供的 Helm 图表在 AKS 集群上部署 Camunda RUN 7.19。目前,我使用默认配置启动它,然后使用 shell 和 vim 手动编辑配置文件夹中的 default.yml 文件以启用某些安全参数(例如基本身份验证)。我现在不想使用 Production.yml 文件。

我面临的问题是,当 Pod 重新启动时,我对文件的更改会丢失。我怎样才能使这些变化持久?我尝试使用 ConfigMap,但由于 Helm 版本不支持子路径,因此我无法覆盖单个文件。我相信这是一个相当常见的场景。在这种情况下你做了什么?你建议我走什么路?

kubernetes-helm camunda camunda-modeler
1个回答
0
投票

一种解决方案是使用名为 SPRING_APPLICATION_JSON 的环境变量覆盖 application.properties,例如:

az container create --resource-group rg-camunda --name camunda-run
--image camunda/camunda-bpm-platform:run-latest --dns-name-label robs-camunda --ports 8080 --protocol TCP --cpu 1 --memory 0.5
--environment-variables SPRING_APPLICATION_JSON='{"camunda.bpm.run.auth.enabled":"true"}'
© www.soinside.com 2019 - 2024. All rights reserved.