Compare commits

...

2 Commits

Author SHA1 Message Date
Martyn 6dcf16062a Actual allow traffic
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
2023-02-11 15:22:31 +01:00
Martyn eef606b770 Allow Remote port binding
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
2023-02-11 15:22:10 +01:00
3 changed files with 37 additions and 2 deletions

View File

@ -1,7 +1,10 @@
FROM library/alpine FROM library/alpine
RUN apk add --no-cache openssh && \ RUN apk add --no-cache openssh && \
sed -i /etc/ssh/sshd_config -e s/'#Port.*'/'Port 2222'/ -e s/'AllowTcpForwarding.*'/'AllowTcpForwarding yes'/ && \ sed -i /etc/ssh/sshd_config \
ssh-keygen -A -e s/'#Port.*'/'Port 2222'/ \
-e s/'AllowTcpForwarding.*'/'AllowTcpForwarding yes'/ \
-e s/'GatewayPorts.*'/'GatewayPorts clientspecified'/ \
&& ssh-keygen -A
RUN adduser -D -s /bin/ash beagle RUN adduser -D -s /bin/ash beagle
ADD beagle.key /home/beagle/.ssh/authorized_keys ADD beagle.key /home/beagle/.ssh/authorized_keys
RUN passwd -u beagle && \ RUN passwd -u beagle && \

25
jelly/ing.yaml Normal file
View File

@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
external-dns.alpha.kubernetes.io/target: drache.martyn.berlin
kubernetes.io/ingress.class: nginx
name: jellyfin-ingress
namespace: jellyfin
spec:
rules:
- host: flix.martyn.berlin
http:
paths:
- backend:
service:
name: jellyfin
port:
number: 8096
path: /
pathType: Prefix
tls:
- hosts:
- flix.martyn.berlin
secretName: flix-tls

7
jelly/service.yaml Normal file
View File

@ -0,0 +1,7 @@
kind: Service
apiVersion: v1
metadata:
name: jellyfin
spec:
type: ExternalName
externalName: remote-jelly.cluster-ingress.svc.cluster.local