From 6dff641850ac6d1ddcf90719a41614082acf4df7 Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Tue, 7 May 2024 08:52:50 +0200 Subject: [PATCH] webdav and ports --- apps/sftpgo/base/deployment.yaml | 8 ++------ apps/sftpgo/base/ingress.yaml | 18 +++++++++++++++++- apps/sftpgo/base/service.yaml | 5 +++++ 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/apps/sftpgo/base/deployment.yaml b/apps/sftpgo/base/deployment.yaml index c2c1067..999fef8 100644 --- a/apps/sftpgo/base/deployment.yaml +++ b/apps/sftpgo/base/deployment.yaml @@ -29,16 +29,12 @@ spec: env: - name: SFTPGO_SFTPD__BINDINGS__0__PORT value: "2022" - - name: SFTPGO_SFTPD__BINDINGS__0__ADDRESS - value: 0.0.0.0 - name: SFTPGO_HTTPD__BINDINGS__0__PORT value: "8080" - - name: SFTPGO_HTTPD__BINDINGS__0__ADDRESS - value: 0.0.0.0 - name: SFTPGO_TELEMETRY__BIND_PORT value: "10000" - - name: SFTPGO_TELEMETRY__BIND_ADDRESS - value: 0.0.0.0 + - name: SFTPGO_WEBDAVD__BINDINGS__0__PORT + value: "8081" image: ghcr.io/drakkan/sftpgo:latest imagePullPolicy: IfNotPresent livenessProbe: diff --git a/apps/sftpgo/base/ingress.yaml b/apps/sftpgo/base/ingress.yaml index ad4f926..b25c657 100644 --- a/apps/sftpgo/base/ingress.yaml +++ b/apps/sftpgo/base/ingress.yaml @@ -28,4 +28,20 @@ spec: kind: Rule services: - name: sftpgo - port: ssh \ No newline at end of file + port: ssh +--- +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: sftpgo-webdav + namespace: sftpgo +spec: + entryPoints: + - webdav + tls: {} + routes: + - match: Host(`webdav.steffenillium.de`) + kind: Rule + services: + - name: sftpgo + port: webdav \ No newline at end of file diff --git a/apps/sftpgo/base/service.yaml b/apps/sftpgo/base/service.yaml index abc9565..934da3a 100644 --- a/apps/sftpgo/base/service.yaml +++ b/apps/sftpgo/base/service.yaml @@ -15,6 +15,11 @@ spec: port: 80 protocol: TCP targetPort: http + - appProtocol: http + name: webdav + port: 81 + protocol: TCP + targetPort: webdav selector: app.kubernetes.io/name: sftpgo type: ClusterIP