mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
fix(netbird): clean up configuration
Signed-off-by: Vegard Hagen <[email protected]>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: GRPCRoute
|
||||
metadata:
|
||||
name: argocd
|
||||
namespace: argocd
|
||||
spec:
|
||||
parentRefs:
|
||||
- { name: internal, namespace: gateway }
|
||||
hostnames: [ argocd.stonegarden.dev ]
|
||||
rules:
|
||||
- backendRefs: [ { name: argocd-server, port: 443 } ]
|
||||
matches:
|
||||
- headers: [ { name: Content-Type, value: application/grpc } ]
|
||||
@@ -3,7 +3,7 @@ kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ns.yaml
|
||||
# - http-route.yaml
|
||||
- grpc-route.yaml
|
||||
- tls-route.yaml
|
||||
- oidc.yaml
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ spec:
|
||||
securityContext:
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
sysctls:
|
||||
# Considered unsafe, need to enable with kubelet argument.
|
||||
# see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#enabling-unsafe-sysctls
|
||||
- name: net.ipv4.conf.all.src_valid_mark
|
||||
value: "1"
|
||||
# sysctls:
|
||||
# # Considered unsafe, need to enable with kubelet argument.
|
||||
# # see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#enabling-unsafe-sysctls
|
||||
# - name: net.ipv4.conf.all.src_valid_mark
|
||||
# value: "1"
|
||||
containers:
|
||||
- name: agent
|
||||
image: docker.io/netbirdio/netbird:0.51.1 # renovate: docker=docker.io/netbirdio/netbird
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: GRPCRoute
|
||||
metadata:
|
||||
name: grpc-route
|
||||
namespace: netbird
|
||||
spec:
|
||||
parentRefs:
|
||||
- { name: external, namespace: gateway }
|
||||
- { name: internal, namespace: gateway }
|
||||
hostnames: [ "netbird.stonegarden.dev" ]
|
||||
rules:
|
||||
- backendRefs: [ { name: management, port: 80 } ]
|
||||
matches:
|
||||
- headers: [ { name: Content-Type, value: application/grpc } ]
|
||||
- method: { service: management.ManagementService }
|
||||
- backendRefs: [ { name: signal, port: 80 } ]
|
||||
matches:
|
||||
- headers: [ { name: Content-Type, value: application/grpc } ]
|
||||
- method: { service: signalexchange.SignalExchange }
|
||||
@@ -5,41 +5,13 @@ metadata:
|
||||
namespace: netbird
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: external
|
||||
namespace: gateway
|
||||
- name: internal
|
||||
namespace: gateway
|
||||
hostnames:
|
||||
- "netbird.stonegarden.dev"
|
||||
- { name: external, namespace: gateway }
|
||||
- { name: internal, namespace: gateway }
|
||||
hostnames: [ "netbird.stonegarden.dev" ]
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: dashboard
|
||||
port: 80
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
- backendRefs:
|
||||
- name: relay
|
||||
port: 80
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /relay
|
||||
- backendRefs:
|
||||
- name: management
|
||||
port: 80
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /api
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /management.ManagementService/
|
||||
- backendRefs:
|
||||
- name: signal
|
||||
port: 80
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /signalexchange.SignalExchange/
|
||||
- backendRefs: [ { name: dashboard, port: 80 } ]
|
||||
matches: [ { path: { type: PathPrefix, value: / } } ]
|
||||
- backendRefs: [ { name: relay, port: 80 } ]
|
||||
matches: [ { path: { type: PathPrefix, value: /relay } } ]
|
||||
- backendRefs: [ { name: management, port: 80 } ]
|
||||
matches: [ { path: { type: PathPrefix, value: /api } } ]
|
||||
|
||||
@@ -4,6 +4,7 @@ kind: Kustomization
|
||||
resources:
|
||||
- ns.yaml
|
||||
- http-route.yaml
|
||||
- grpc-route.yaml
|
||||
- relay-secret.yaml
|
||||
- coturn-credentials.yaml
|
||||
- authelia-oidc-credentials.yaml
|
||||
|
||||
@@ -12,7 +12,7 @@ configMapGenerator:
|
||||
literals:
|
||||
- AUTH_AUTHORITY="https://authelia.stonegarden.dev"
|
||||
- AUTH_USER_ID_CLAIM="preferred_username"
|
||||
- AUTH_SUPPORTED_SCOPES="openid profile email"
|
||||
- AUTH_SUPPORTED_SCOPES="openid profile email offline_access"
|
||||
- name: management-connection-config
|
||||
namespace: netbird
|
||||
literals:
|
||||
|
||||
Reference in New Issue
Block a user