feat(data): pg-hk 重新部署

这个提交包含在:
2024-06-26 11:30:16 +08:00
未验证
父节点 12661e2a57
当前提交 6c99428a5a
修改 5 个文件,包含 18 行新增8 行删除
+1 -1
查看文件
@@ -20,7 +20,7 @@ spec:
port: 5432
db_name: crowdsec
user: app
password: iUYXiu1ZfQdnKTAS3tj8c6dD7OHKlFPrwmzEXNpvcS6nLswV6JPg6YoK1gqZk1sO
password: nyrHzh9WWlDZzvVw7bDFo74gKb9zsls0Sy7OwRTDWiRTNPQQQkW85taUFAoX2AIC
sslmode: require
agent:
affinity:
+1 -1
查看文件
@@ -47,7 +47,7 @@ spec:
host: cnpg-cluster-hk-rw.infra-data:5432
name: grafana
user: app
password: iUYXiu1ZfQdnKTAS3tj8c6dD7OHKlFPrwmzEXNpvcS6nLswV6JPg6YoK1gqZk1sO
password: nyrHzh9WWlDZzvVw7bDFo74gKb9zsls0Sy7OwRTDWiRTNPQQQkW85taUFAoX2AIC
persistence:
type: pvc
+1 -1
查看文件
@@ -64,7 +64,7 @@ spec:
- name: API_URL
value: "http://crowdsec-service.infra-monitor.svc.cluster.local:8080"
- name: API_KEY
value: "NQLDIAxiToOs3PmChTq5Vl+ByY3GAffyhEFqIXDpvU4"
value: "rgILO2mh/t+30LMvzyyMXbfHRmDfBkDDkhEflzHaoQ0"
- name: BOUNCER_CONFIG
value: "/crowdsec/crowdsec-bouncer.conf"
command: ['sh', '-c', "bash /docker_start.sh; mkdir -p /lua_plugins/crowdsec/; cp -R /crowdsec/* /lua_plugins/crowdsec/"]
+15
查看文件
@@ -0,0 +1,15 @@
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: tailscale-derp
namespace: infra-net
spec:
repo: https://devcm-repo.github.io/helm-charts
chart: tailscale-derp
version: 0.0.3
targetNamespace: infra-net
valuesContent: |-
nodeSelector:
kubernetes.io/hostname: tthk
drep:
hostname: 'derp-hk.dev.cm'
-5
查看文件
@@ -10,11 +10,6 @@ vim /etc/hosts
curl -fsSL https://tailscale.com/install.sh | sh
```
### 开启tailscale的自动更新
```shell
tailscale set --auto-update
```
### 开启ip转发
```shell
echo 'net.ipv4.ip_forward = 1' | tee -a /etc/sysctl.d/99-tailscale.conf