Spring boot 如何运行liquibase作为头盔中的预安装挂钩?
我有一个Springboot微服务,它使用Spring boot 如何运行liquibase作为头盔中的预安装挂钩?,spring-boot,kubernetes,liquibase,kubernetes-helm,Spring Boot,Kubernetes,Liquibase,Kubernetes Helm,我有一个Springboot微服务,它使用liquibase进行数据库迁移。但是,有时应用程序pod由于在Kubernetes中出现液化锁问题而无法启动 为了避免这种情况,我如何使用Helm的预安装挂钩? 如何在helm中为使用liquibase的spring boot应用程序设置数据库迁移作业?不是helm专家,我使用的是basis。我还使用以下预安装挂钩的定义: 在呈现模板之后但在创建任何资源之前执行 创建于库伯内特斯 我想在我的掌舵工作中可以有这样一个钩子片段: annotations
liquibase
进行数据库迁移。但是,有时应用程序pod由于在Kubernetes中出现液化锁问题而无法启动
为了避免这种情况,我如何使用Helm的预安装挂钩
?
如何在helm
中为使用liquibase的spring boot应用程序设置数据库迁移作业?不是helm专家,我使用的是basis。我还使用以下预安装挂钩的定义:
在呈现模板之后但在创建任何资源之前执行
创建于库伯内特斯
我想在我的掌舵工作中可以有这样一个钩子片段:
annotations:
# This is what defines this resource as a hook. Without this line, the
# job is considered part of the release.
"helm.sh/hook": post-install
"helm.sh/hook-weight": "-5"
"helm.sh/hook-delete-policy": hook-succeeded
似乎该图表将在预安装挂钩中运行liquibase update命令。不是舵手专家,我使用的是basis。我还使用以下预安装挂钩的定义:
在呈现模板之后但在创建任何资源之前执行
创建于库伯内特斯
我想在我的掌舵工作中可以有这样一个钩子片段:
annotations:
# This is what defines this resource as a hook. Without this line, the
# job is considered part of the release.
"helm.sh/hook": post-install
"helm.sh/hook-weight": "-5"
"helm.sh/hook-delete-policy": hook-succeeded
该图表似乎会在预安装挂钩中运行liquibase update命令。感谢您的回复。我没有找到合适的方法来做这件事。因此,作为一种解决方法,我创建了另一个应用程序类(预安装挂钩),它将只运行spring上下文,并在主部署文件中禁用spring.liquibase。感谢您的回复。我没有找到合适的方法来做这件事。因此,作为一种解决方法,我创建了另一个应用程序类(预安装挂钩),它将只运行spring上下文,并在主部署文件中禁用spring.liquibase。