Skip to content

Commit

Permalink
add ability to specify externalTrafficPolicy and allow customized por…
Browse files Browse the repository at this point in the history
…t sftp
  • Loading branch information
edevosc2c committed Mar 7, 2024
1 parent 44d9ace commit 7fa501f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pgbouncer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.18.0"
description: A Helm chart installing pgbouncer in kubernetes
name: pgbouncer
version: 1.5.0
version: 1.6.0
3 changes: 3 additions & 0 deletions pgbouncer/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: psql
Expand Down
2 changes: 2 additions & 0 deletions pgbouncer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ image:
service:
type: ClusterIP
port: 5432
# Set to local if want to preserve source IP for NodePort or LoadBalancer
# externalTrafficPolicy: Cluster
# nodePort: 30543 # when type NodePort
annotations: {}

Expand Down
2 changes: 1 addition & 1 deletion sftp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: A Helm chart for deploying a SFTP stack

type: application

version: 0.3.0
version: 1.0.0

appVersion: "1.0"
5 changes: 4 additions & 1 deletion sftp/templates/sftp-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ metadata:
app.georchestra.org: sftp
spec:
type: {{ .Values.sftp.service.type }}
{{- if .Values.sftp.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.sftp.service.externalTrafficPolicy }}
{{- end }}
ports:
- port: 22
- port: {{ .Values.sftp.service.port }}
protocol: TCP
targetPort: 22
{{- if .Values.sftp.service.nodePort }}
Expand Down
3 changes: 3 additions & 0 deletions sftp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
sftp:
service:
type: "ClusterIP" # or NodePort or LoadBalancer
port: 22
# nodePort: 30022 # when type NodePort
# Set to local if want to preserve source IP for NodePort or LoadBalancer
# externalTrafficPolicy: Cluster
image: camptocamp/sftp:bullseye-k8s-georchestra
imagePullPolicy: Always
#lifecycle:
Expand Down

0 comments on commit 7fa501f

Please sign in to comment.