fix: edites dns entries and peertube role

This commit is contained in:
Elam Monnot 2023-05-10 11:02:40 +02:00
parent 597ff383f7
commit 30b74c50e2
4 changed files with 8 additions and 7 deletions

View File

@ -5,7 +5,7 @@
; ;
$TTL 604800 $TTL 604800
@ IN SOA s-infra.gsb.lan. root.s-infra.gsb.lan. ( @ IN SOA s-infra.gsb.lan. root.s-infra.gsb.lan. (
2023040501 ; Serial 2023051000 ; Serial
7200 ; Refresh 7200 ; Refresh
86400 ; Retry 86400 ; Retry
8419200 ; Expire 8419200 ; Expire
@ -37,4 +37,4 @@ s-lb.gsb.lan IN A 192.168.100.10
ns IN CNAME s-infra.gsb.lan. ns IN CNAME s-infra.gsb.lan.
wpad IN CNAME s-infra.gsb.lan. wpad IN CNAME s-infra.gsb.lan.
s-peertube IN A 192.168.100.20 s-peertube IN A 192.168.100.20
s-peertube.gsb.lan IN CNAME s-peertube peertube IN CNAME s-peertube

View File

@ -1,4 +1,4 @@
MYHOST=s-peertube.gsb.lan; MYHOST=peertube.gsb.lan;
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml; export KUBECONFIG=/etc/rancher/k3s/k3s.yaml;
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls.key -out tls.cert -subj /CN="${MYHOST}"/O="${MYHOST}" -addext "subjectAltName = DNS:${MYHOST}"; openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls.key -out tls.cert -subj /CN="${MYHOST}"/O="${MYHOST}" -addext "subjectAltName = DNS:${MYHOST}";
kubectl create secret tls tls-peertube --key tls.key --cert tls.cert; kubectl create secret tls tls-peertube --key tls.key --cert tls.cert;

View File

@ -1,2 +1,3 @@
nameserver 192.168.99.99 domain gsb.lan
nameserver 172.16.0.1 search gsb.lan
nameserver 172.16.0.1

View File

@ -105,14 +105,14 @@ ingress:
nginx.ingress.kubernetes.io/proxy-body-size: 6G # this caps the size of imported videos, if set low this might prevent you from uploading videos nginx.ingress.kubernetes.io/proxy-body-size: 6G # this caps the size of imported videos, if set low this might prevent you from uploading videos
# kubernetes.io/tls-acme: "true" # kubernetes.io/tls-acme: "true"
hosts: hosts:
- host: s-peertube.gsb.lan - host: peertube.gsb.lan
paths: paths:
- path: / - path: /
pathType: ImplementationSpecific pathType: ImplementationSpecific
tls: tls:
- secretName: tls-peertube - secretName: tls-peertube
- hosts: - hosts:
- s-peertube.gsb.lan - peertube.gsb.lan
resources: {} resources: {}
autoscaling: autoscaling: