Kong GCP 设置启动每周迁移,这会破坏数据存储和管理员访问权限

Kong GCP setup initiating weekly migrations which is breaking the datastore and admin access

我有一个来自 GCP 市场的 Kong 设置。设置服务和路由后,在容器日志中,有一个自动启动的迁移更新,最终刷新了我的数据存储并在访问时向我显示错误 {"message":"An unexpected error occurred"}管理面板。

如何禁用自动迁移/如何保留数据存储和访问管理面板?

Logs from gke workload

建议 运行 在它们自己的临时容器中进行迁移,但也可以禁用。

来自香港github:

docker-撰写 v2:https://github.com/Kong/docker-kong/blob/master/compose/docker-compose.yml

docker-撰写 v3:https://github.com/Kong/docker-kong/blob/master/swarm/docker-compose.yml

有迁移服务

services:

  kong-migrations:
image: "${KONG_DOCKER_TAG:-kong:latest}"
command: kong migrations bootstrap

 kong-migrations-up:
image: "${KONG_DOCKER_TAG:-kong:latest}"
command: kong migrations up && kong migrations finish

我从 GCP MarketPlace 部署了一个 Kong,在 Kong 部署的 YAML 文件中,它包含一个用于 运行 迁移的容器(正如我之前的建议)

  initContainers:
  - command:
    - sh
    - -c
    - until kong migrations up; do echo waiting for database and migrations; sleep
      2; done;

您可以编辑部署以删除这些条目