mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-01 10:27:49 +00:00
feat(netbird): replace dashboard helm chart with plain manifests
imho the chart doesn't add much here
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
dev.stonegarden: vpn
|
|
||||||
app.kubernetes.io/managed-by: argocd
|
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- project.yaml
|
- project.yaml
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: DaemonSet
|
kind: DaemonSet
|
||||||
metadata:
|
metadata:
|
||||||
name: netbird-agent
|
name: agent
|
||||||
namespace: netbird
|
namespace: netbird
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: netbird
|
app: agent
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: netbird
|
app: agent
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
containers:
|
containers:
|
||||||
- name: netbird
|
- name: agent
|
||||||
image: docker.io/netbirdio/netbird:0.35.2 # renovate: docker=docker.io/netbirdio/netbird
|
image: docker.io/netbirdio/netbird:0.35.2 # renovate: docker=docker.io/netbirdio/netbird
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ data:
|
|||||||
"Domain": "${NETBIRD_AUTH_DEVICE_AUTH_AUTHORITY}",
|
"Domain": "${NETBIRD_AUTH_DEVICE_AUTH_AUTHORITY}",
|
||||||
"TokenEndpoint": "${NETBIRD_AUTH_DEVICE_AUTH_TOKEN_ENDPOINT}",
|
"TokenEndpoint": "${NETBIRD_AUTH_DEVICE_AUTH_TOKEN_ENDPOINT}",
|
||||||
"Scope": "${NETBIRD_AUTH_DEVICE_AUTH_SCOPE}",
|
"Scope": "${NETBIRD_AUTH_DEVICE_AUTH_SCOPE}",
|
||||||
"UseIDToken": ${NETBIRD_AUTH_DEVICE_AUTH_USE_ID_TOKEN:-false}
|
"UseIDToken": "${NETBIRD_AUTH_DEVICE_AUTH_USE_ID_TOKEN:-false}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Relay": {
|
"Relay": {
|
||||||
|
|||||||
35
k8s/infra/vpn/netbird/dashboard/deployment.yaml
Normal file
35
k8s/infra/vpn/netbird/dashboard/deployment.yaml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: dashboard
|
||||||
|
namespace: netbird
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: dashboard
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: dashboard
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: dashboard
|
||||||
|
image: docker.io/netbirdio/dashboard:v2.8.2 # renovate: docker=docker.io/netbirdio/dashboard
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: dashboard-config
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 80
|
||||||
|
readinessProbe:
|
||||||
|
failureThreshold: 3
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: http
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 32Mi
|
||||||
|
cpu: 10m
|
||||||
|
limits:
|
||||||
|
memory: 128Mi
|
||||||
|
cpu: 2000m
|
||||||
@@ -1,15 +1,21 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|
||||||
|
configMapGenerator:
|
||||||
|
- name: dashboard-config
|
||||||
namespace: netbird
|
namespace: netbird
|
||||||
|
literals:
|
||||||
|
# variables: https://github.com/netbirdio/dashboard/blob/main/config.json
|
||||||
|
- AUTH_AUDIENCE="netbird-dashboard"
|
||||||
|
- AUTH_AUTHORITY="https://keycloak.stonegarden.dev/realms/homelab"
|
||||||
|
- AUTH_CLIENT_ID="netbird-dashboard"
|
||||||
|
- AUTH_SUPPORTED_SCOPES="openid profile email offline_access netbird-api"
|
||||||
|
- USE_AUTH0="false"
|
||||||
|
- NETBIRD_MGMT_API_ENDPOINT="https://netbird.stonegarden.dev"
|
||||||
|
- NETBIRD_MGMT_GRPC_API_ENDPOINT="https://netbird.stonegarden.dev"
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- svc.yaml
|
||||||
- x-oidc-client.yaml
|
- x-oidc-client.yaml
|
||||||
- oidc-scopes.yaml
|
- oidc-scopes.yaml
|
||||||
|
|
||||||
helmCharts:
|
|
||||||
- name: netbird-dashboard
|
|
||||||
repo: https://charts.jaconi.io
|
|
||||||
releaseName: netbird-dashboard
|
|
||||||
namespace: netbird
|
|
||||||
version: 1.0.0
|
|
||||||
valuesFile: values.yaml
|
|
||||||
|
|||||||
13
k8s/infra/vpn/netbird/dashboard/svc.yaml
Normal file
13
k8s/infra/vpn/netbird/dashboard/svc.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: dashboard
|
||||||
|
namespace: netbird
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: dashboard
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
image:
|
|
||||||
tag: v2.8.2 # renovate: docker=docker.io/netbirdio/dashboard
|
|
||||||
|
|
||||||
auth:
|
|
||||||
authority: https://keycloak.stonegarden.dev/realms/homelab
|
|
||||||
audience: netbird-dashboard
|
|
||||||
clientID: netbird-dashboard
|
|
||||||
supportedScopes: openid profile email offline_access netbird-api
|
|
||||||
userIDClaim: sub
|
|
||||||
|
|
||||||
netbird:
|
|
||||||
managementApiEndpoint: https://netbird.stonegarden.dev
|
|
||||||
managementGrpcApiEndpoint: https://netbird.stonegarden.dev
|
|
||||||
|
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
@@ -13,14 +13,14 @@ spec:
|
|||||||
- "netbird.stonegarden.dev"
|
- "netbird.stonegarden.dev"
|
||||||
rules:
|
rules:
|
||||||
- backendRefs:
|
- backendRefs:
|
||||||
- name: netbird-dashboard
|
- name: dashboard
|
||||||
port: 80
|
port: 80
|
||||||
matches:
|
matches:
|
||||||
- path:
|
- path:
|
||||||
type: PathPrefix
|
type: PathPrefix
|
||||||
value: /
|
value: /
|
||||||
- backendRefs:
|
- backendRefs:
|
||||||
- name: netbird-relay
|
- name: relay
|
||||||
port: 80
|
port: 80
|
||||||
matches:
|
matches:
|
||||||
- path:
|
- path:
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: netbird
|
#commonLabels:
|
||||||
|
# - app.kubernetes.io/part-of: netbird
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- ns.yaml
|
- ns.yaml
|
||||||
|
|||||||
@@ -1,19 +1,16 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
name: relay
|
||||||
app.kubernetes.io/name: netbird-relay
|
|
||||||
name: netbird-relay
|
|
||||||
namespace: netbird
|
namespace: netbird
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: netbird-relay
|
app.kubernetes.io/name: relay
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/instance: netbird-relay
|
app.kubernetes.io/name: relay
|
||||||
app.kubernetes.io/name: netbird-relay
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: netbirdio/relay:0.35.2 # renovate: docker=netbirdio/relay
|
- image: netbirdio/relay:0.35.2 # renovate: docker=netbirdio/relay
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: netbird-relay
|
name: relay
|
||||||
namespace: netbird
|
namespace: netbird
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: netbird-relay
|
app.kubernetes.io/name: relay
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: netbird-relay
|
app.kubernetes.io/name: relay
|
||||||
ports:
|
ports:
|
||||||
- name: relay
|
- name: relay
|
||||||
port: 80
|
port: 80
|
||||||
protocol: TCP
|
targetPort: relay
|
||||||
targetPort: 80
|
|
||||||
|
|||||||
Reference in New Issue
Block a user