fix(gitops): align postgresql stunnel client with compose runtime
This commit is contained in:
parent
236e28389b
commit
1b23fe01c0
@ -9,6 +9,8 @@ resources:
|
|||||||
- stunnel-server-configmap.yaml
|
- stunnel-server-configmap.yaml
|
||||||
- stunnel-server-deployment.yaml
|
- stunnel-server-deployment.yaml
|
||||||
- stunnel-server-service.yaml
|
- stunnel-server-service.yaml
|
||||||
|
- stunnel-client-deployment.yaml
|
||||||
|
- stunnel-client-service.yaml
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: postgresql-values
|
- name: postgresql-values
|
||||||
files:
|
files:
|
||||||
|
|||||||
30
databases/postgresql/stunnel-client-deployment.yaml
Normal file
30
databases/postgresql/stunnel-client-deployment.yaml
Normal 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
|
||||||
12
databases/postgresql/stunnel-client-service.yaml
Normal file
12
databases/postgresql/stunnel-client-service.yaml
Normal 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
|
||||||
@ -49,7 +49,7 @@ stunnel:
|
|||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
stunnelClient:
|
stunnelClient:
|
||||||
enabled: true
|
enabled: false
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/x-evor/postgresql.svc.plus/stunnel-client
|
repository: ghcr.io/x-evor/postgresql.svc.plus/stunnel-client
|
||||||
tag: latest
|
tag: latest
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user