feat(data): 切换数据库镜像

这个提交包含在:
rohow
2025-08-20 15:13:49 +08:00
未验证
父节点 9a6233c751
当前提交 32882d76c6
修改 3 个文件,包含 7 行新增7 行删除
@@ -15,16 +15,13 @@ spec:
- cn-hk - cn-hk
weight: 1 weight: 1
instances: 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 enableSuperuserAccess: true
storage: storage:
size: 10Gi size: 10Gi
postgresql: postgresql:
parameters: parameters:
archive_timeout: 30min archive_timeout: 30min
# 启用向量扩展
shared_preload_libraries:
- "vectors.so"
backup: backup:
retentionPolicy: "7d" retentionPolicy: "7d"
barmanObjectStore: barmanObjectStore:
@@ -15,7 +15,7 @@ spec:
- cn-sh - cn-sh
weight: 1 weight: 1
instances: 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 enableSuperuserAccess: true
storage: storage:
size: 10Gi size: 10Gi
+5 -2
查看文件
@@ -125,9 +125,11 @@ spec:
# crowdsec插件配置 # crowdsec插件配置
extraInitContainers: extraInitContainers:
- name: init-clone-crowdsec-bouncer - name: init-clone-crowdsec-bouncer
image: devcm/lua-bouncer-plugin:v1.0.5 image: crowdsecurity/lua-bouncer-plugin:v1.1.1
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
env: env:
- name: SHELL
value: "/bin/sh"
- name: API_URL - name: API_URL
value: "http://crowdsec-service.infra-net.svc.cluster.local:8080" value: "http://crowdsec-service.infra-net.svc.cluster.local:8080"
- name: API_KEY - name: API_KEY
@@ -150,7 +152,8 @@ spec:
value: "0x4AAAAAAAxJ2dwFOaNg5ae3c6wYTmWH0bU" value: "0x4AAAAAAAxJ2dwFOaNg5ae3c6wYTmWH0bU"
- name: CAPTCHA_TEMPLATE_PATH - name: CAPTCHA_TEMPLATE_PATH
value: /etc/nginx/static/captcha.html 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: volumeMounts:
- name: crowdsec-bouncer-plugin - name: crowdsec-bouncer-plugin
mountPath: /lua_plugins mountPath: /lua_plugins