-
|
I would like to make an SFTP server publicly accessible. Can I configure There is a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Yes, you can expose TCP services with ingress-nginx. See https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/ |
Beta Was this translation helpful? Give feedback.
-
|
Here is the solution, hoping that it may be helpful to someone: Assuming that the load balancer is set up according to the hetzner-k3s recommendations, the following sections in ingress-nginx:
controller:
kind: DaemonSet
service:
annotations:
# (...load-balancer.hetzner.cloud/* annotations...)
extraArgs:
tcp-services-configmap: “ingress-nginx/tcp-services”
tcp:
“12345”: “12345”
This ConfigMap looks like this: apiVersion: v1
kind: ConfigMap
metadata:
name: tcp-services
namespace: ingress-nginx
data:
“12345”: “whatever/some-tcp-service:22”
This works very well. However, it should be noted that a possible |
Beta Was this translation helpful? Give feedback.
Here is the solution, hoping that it may be helpful to someone:
Assuming that the load balancer is set up according to the hetzner-k3s recommendations, the following sections in
values.yamlare important:tcpmap defines the ports that should be automatically configured on the Hetzner load balancerextraArgs.tcp-services-configmapdefines the name of a ConfigMap that maps the TCP ports from the Nginx load balancer to internal services (kind:…