ingress and service
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: sftpgo
|
name: sftpgo-http
|
||||||
namespace: sftpgo
|
namespace: sftpgo
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
@ -12,4 +12,20 @@ spec:
|
|||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: sftpgo
|
- name: sftpgo
|
||||||
port: http
|
port: http
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: sftpgo-ssh
|
||||||
|
namespace: sftpgo
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- ssh
|
||||||
|
tls: {}
|
||||||
|
routes:
|
||||||
|
- match: Host(`sftp.steffenillium.de`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: sftpgo
|
||||||
|
port: ssh
|
@ -32,6 +32,7 @@ spec:
|
|||||||
- --entrypoints.metrics.address=:9100/tcp
|
- --entrypoints.metrics.address=:9100/tcp
|
||||||
- --entrypoints.traefik.address=:9000/tcp
|
- --entrypoints.traefik.address=:9000/tcp
|
||||||
- --entrypoints.dns.address=:53/udp
|
- --entrypoints.dns.address=:53/udp
|
||||||
|
- --entrypoints.dns.address=:22/tcp
|
||||||
|
|
||||||
- --entrypoints.web-local.address=:80/tcp
|
- --entrypoints.web-local.address=:80/tcp
|
||||||
- --entrypoints.web-local.http.redirections.entrypoint.to=websecure-local
|
- --entrypoints.web-local.http.redirections.entrypoint.to=websecure-local
|
||||||
@ -97,6 +98,9 @@ spec:
|
|||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
timeoutSeconds: 2
|
timeoutSeconds: 2
|
||||||
ports:
|
ports:
|
||||||
|
- containerPort: 22
|
||||||
|
name: ssh
|
||||||
|
protocol: TCP
|
||||||
- containerPort: 53
|
- containerPort: 53
|
||||||
name: dns
|
name: dns
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
|
Reference in New Issue
Block a user