From 32882d76c6a16553b9da20d19a8b3cb93b012380 Mon Sep 17 00:00:00 2001 From: rohow Date: Wed, 20 Aug 2025 15:13:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(data):=20=E5=88=87=E6=8D=A2=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/infra/data/cloudnative-pg/cnpg17-cluster-hk.yaml | 5 +---- apps/infra/data/cloudnative-pg/cnpg17-cluster-sh.yaml | 2 +- apps/infra/net/nginx/helmchart.yaml | 7 +++++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/infra/data/cloudnative-pg/cnpg17-cluster-hk.yaml b/apps/infra/data/cloudnative-pg/cnpg17-cluster-hk.yaml index f3b5cc0..55a7033 100644 --- a/apps/infra/data/cloudnative-pg/cnpg17-cluster-hk.yaml +++ b/apps/infra/data/cloudnative-pg/cnpg17-cluster-hk.yaml @@ -15,16 +15,13 @@ spec: - cn-hk weight: 1 instances: 1 - imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:17.5-v0.4.0 + imageName: ghcr.io/cloudnative-pg/postgresql:17-bookworm enableSuperuserAccess: true storage: size: 10Gi postgresql: parameters: archive_timeout: 30min - # 启用向量扩展 - shared_preload_libraries: - - "vectors.so" backup: retentionPolicy: "7d" barmanObjectStore: diff --git a/apps/infra/data/cloudnative-pg/cnpg17-cluster-sh.yaml b/apps/infra/data/cloudnative-pg/cnpg17-cluster-sh.yaml index 5f6c1d8..5fa9ac2 100644 --- a/apps/infra/data/cloudnative-pg/cnpg17-cluster-sh.yaml +++ b/apps/infra/data/cloudnative-pg/cnpg17-cluster-sh.yaml @@ -15,7 +15,7 @@ spec: - cn-sh weight: 1 instances: 1 - imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:17.5-v0.4.0 + imageName: ghcr.io/cloudnative-pg/postgresql:17-bookworm enableSuperuserAccess: true storage: size: 10Gi diff --git a/apps/infra/net/nginx/helmchart.yaml b/apps/infra/net/nginx/helmchart.yaml index 67c80a6..5690c4d 100644 --- a/apps/infra/net/nginx/helmchart.yaml +++ b/apps/infra/net/nginx/helmchart.yaml @@ -125,9 +125,11 @@ spec: # crowdsec插件配置 extraInitContainers: - name: init-clone-crowdsec-bouncer - image: devcm/lua-bouncer-plugin:v1.0.5 + image: crowdsecurity/lua-bouncer-plugin:v1.1.1 imagePullPolicy: IfNotPresent env: + - name: SHELL + value: "/bin/sh" - name: API_URL value: "http://crowdsec-service.infra-net.svc.cluster.local:8080" - name: API_KEY @@ -150,7 +152,8 @@ spec: value: "0x4AAAAAAAxJ2dwFOaNg5ae3c6wYTmWH0bU" - name: CAPTCHA_TEMPLATE_PATH value: /etc/nginx/static/captcha.html - command: ['sh', '-c', "bash /docker_start.sh; mkdir -p /lua_plugins/crowdsec/; cp -R /crowdsec/* /lua_plugins/crowdsec/"] + command: ['/bin/sh', '-c'] + args: ['sh /docker_start.sh; mkdir -p /lua_plugins/crowdsec/; cp -R /crowdsec/* /lua_plugins/crowdsec/'] volumeMounts: - name: crowdsec-bouncer-plugin mountPath: /lua_plugins