Tailscale in Kubernetes
Set tailscale operator up in Kubernetes Configure external services
This commit is contained in:
@@ -35,6 +35,7 @@ helm upgrade --install cnpg \
|
|||||||
-f values/cnpg.yaml \
|
-f values/cnpg.yaml \
|
||||||
--wait
|
--wait
|
||||||
sleep 5
|
sleep 5
|
||||||
|
./tailscale/apply.sh
|
||||||
kubectl apply -k .
|
kubectl apply -k .
|
||||||
|
|
||||||
./immich/apply.sh
|
./immich/apply.sh
|
||||||
|
|||||||
@@ -91,17 +91,13 @@ apiVersion: networking.k8s.io/v1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: ingress-pgadmin
|
name: ingress-pgadmin
|
||||||
annotations:
|
|
||||||
ingressClassName: traefik
|
|
||||||
spec:
|
spec:
|
||||||
rules:
|
ingressClassName: tailscale
|
||||||
- host: pgadmin.kubernetes
|
defaultBackend:
|
||||||
http:
|
service:
|
||||||
paths:
|
name: service-pgadmin
|
||||||
- path: /
|
port:
|
||||||
pathType: Prefix
|
number: 80
|
||||||
backend:
|
tls:
|
||||||
service:
|
- hosts:
|
||||||
name: service-pgadmin
|
- pgadmin
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
|
|||||||
@@ -87,6 +87,22 @@ spec:
|
|||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: longhorn-ingress-tailscale
|
||||||
|
namespace: longhorn-system
|
||||||
|
spec:
|
||||||
|
ingressClassName: tailscale
|
||||||
|
defaultBackend:
|
||||||
|
service:
|
||||||
|
name: longhorn-frontend
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- longhorn
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: longhorn-ingress
|
name: longhorn-ingress
|
||||||
namespace: longhorn-system
|
namespace: longhorn-system
|
||||||
|
|||||||
@@ -22,5 +22,19 @@ spec:
|
|||||||
name: immich-server
|
name: immich-server
|
||||||
port:
|
port:
|
||||||
name: http
|
name: http
|
||||||
- <<: *host
|
---
|
||||||
host: immich.thehellings.com
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
namespace: immich
|
||||||
|
name: immich-ingress-tailscale
|
||||||
|
spec:
|
||||||
|
defaultBackend:
|
||||||
|
service:
|
||||||
|
name: immich-server
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
|
ingressClassName: tailscale
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- immich
|
||||||
|
|||||||
@@ -1,21 +1,15 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: dendrite-ingress
|
namespace: matrix
|
||||||
annotations:
|
name: dendrite-ingress-tailscale
|
||||||
ingressClassName: traefik
|
|
||||||
spec:
|
spec:
|
||||||
rules:
|
ingressClassName: tailscale
|
||||||
- &host
|
defaultBackend:
|
||||||
host: matrix.kubernetes
|
service:
|
||||||
http:
|
name: dendrite
|
||||||
paths:
|
port:
|
||||||
- path: /
|
number: 8008
|
||||||
pathType: Prefix
|
tls:
|
||||||
backend:
|
- hosts:
|
||||||
service:
|
- matrix
|
||||||
name: dendrite
|
|
||||||
port:
|
|
||||||
number: 8008
|
|
||||||
- <<: *host
|
|
||||||
host: matrix.thehellings.com
|
|
||||||
|
|||||||
Executable
+15
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
helm repo add tailscale https://pkgs.tailscale.com/helmcharts
|
||||||
|
|
||||||
|
helm repo update tailscale
|
||||||
|
|
||||||
|
helm upgrade \
|
||||||
|
--install \
|
||||||
|
tailscale-operator \
|
||||||
|
tailscale/tailscale-operator \
|
||||||
|
--namespace=tailscale \
|
||||||
|
--create-namespace \
|
||||||
|
--set-string oauth.clientId="$(bw get username 'ffa188a4-63b2-4926-99f0-b33b0021a4f4')" \
|
||||||
|
--set-string oauth.clientSecret="$(bw get password 'ffa188a4-63b2-4926-99f0-b33b0021a4f4')" \
|
||||||
|
--wait
|
||||||
@@ -208,14 +208,14 @@
|
|||||||
bookmarks = [
|
bookmarks = [
|
||||||
{
|
{
|
||||||
name = "Longhorn";
|
name = "Longhorn";
|
||||||
url = "http://longhorn.kubernetes";
|
url = "http://longhorn.shire-zebra.ts.net";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "PGAdmin4";
|
||||||
|
url = "http://pgadmin.shire-zebra.ts.net/";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "PGAdmin4";
|
|
||||||
url = "http://pgadmin.kubernetes/";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
name = "Password Hash";
|
name = "Password Hash";
|
||||||
url = "https://unix4lyfe.org/crypt/";
|
url = "https://unix4lyfe.org/crypt/";
|
||||||
|
|||||||
Reference in New Issue
Block a user