fix(gitops): align postgresql stunnel client with compose runtime

This commit is contained in:
Haitao Pan 2026-04-02 18:44:42 +08:00
parent 236e28389b
commit 1b23fe01c0
4 changed files with 45 additions and 1 deletions

View File

@ -9,6 +9,8 @@ resources:
- stunnel-server-configmap.yaml
- stunnel-server-deployment.yaml
- stunnel-server-service.yaml
- stunnel-client-deployment.yaml
- stunnel-client-service.yaml
configMapGenerator:
- name: postgresql-values
files:

View File

@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: postgresql-stunnel-client
namespace: database
spec:
replicas: 1
selector:
matchLabels:
app: postgresql-stunnel-client
template:
metadata:
labels:
app: postgresql-stunnel-client
spec:
containers:
- name: stunnel-client
image: dweomer/stunnel:latest
imagePullPolicy: IfNotPresent
env:
- name: STUNNEL_SERVICE
value: postgres-client
- name: STUNNEL_ACCEPT
value: "15432"
- name: STUNNEL_CONNECT
value: postgresql-stunnel-server.database.svc.cluster.local:5433
- name: STUNNEL_CRONTAB
value: ""
ports:
- containerPort: 15432

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: postgresql-stunnel-client
namespace: database
spec:
selector:
app: postgresql-stunnel-client
ports:
- name: postgres
port: 15432
targetPort: 15432

View File

@ -49,7 +49,7 @@ stunnel:
enabled: false
stunnelClient:
enabled: true
enabled: false
image:
repository: ghcr.io/x-evor/postgresql.svc.plus/stunnel-client
tag: latest