mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-22 16:44:24 +00:00
Add netdata service and ingress route configuration
This commit is contained in:
31
apps/prod/homelab-proxy/netdata.yaml
Normal file
31
apps/prod/homelab-proxy/netdata.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: netdata-proxy
|
||||
namespace: homelab-proxy
|
||||
annotations:
|
||||
tailscale.com/tailnet-fqdn: ${NETDATA_TAILNET_FQDN}
|
||||
spec:
|
||||
type: ExternalName
|
||||
externalName: placeholder
|
||||
ports:
|
||||
- port: ${NETDATA_INTERNAL_PORT}
|
||||
name: http
|
||||
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: netdata-ingress
|
||||
namespace: homelab-proxy
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`${NETDATA_DOMAIN}`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: netdata-proxy
|
||||
port: ${NETDATA_INTERNAL_PORT}
|
||||
middlewares:
|
||||
- name: "auth-authelia@kubernetescrd"
|
||||
Reference in New Issue
Block a user