Skip to content

Commit

Permalink
add ability to set other service type for sftp
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Dec 19, 2023
1 parent fa3560a commit 3ef2eca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sftp/templates/sftp-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ metadata:
{{- include "sftp.labels" . | nindent 4 }}
app.georchestra.org: sftp
spec:
type: ClusterIP
type: {{ .Values.sftp.service.type }}
ports:
- port: 22
protocol: TCP
targetPort: 22
{{- if .Values.sftp.service.nodePort }}
nodePort: {{ .Values.sftp.service.nodePort }}
{{- end }}
selector:
{{- include "sftp.selectorLabels" . | nindent 4 }}
3 changes: 3 additions & 0 deletions sftp/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
sftp:
service:
type: "ClusterIP" # or NodePort or LoadBalancer
# nodePort: 30022 # when type NodePort
image: camptocamp/sftp:bullseye-k8s-georchestra
imagePullPolicy: Always
#lifecycle:
Expand Down

0 comments on commit 3ef2eca

Please sign in to comment.