feat(cluster): add treafik middleware for local only access
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
4 files changed
+29
No files matched your search
@@ -111,6 +111,7 @@ spec:
|
|||||||
hajimari.io/enable: "true"
|
hajimari.io/enable: "true"
|
||||||
hajimari.io/icon: "weather-sunset"
|
hajimari.io/icon: "weather-sunset"
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
||||||
|
traefik.ingress.kubernetes.io/router.middlewares: "networking-local-only-access@kubernetescrd"
|
||||||
hosts:
|
hosts:
|
||||||
- host: "hajimari.${SECRET_DOMAIN}"
|
- host: "hajimari.${SECRET_DOMAIN}"
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -4,3 +4,4 @@ kind: Kustomization
|
|||||||
resources:
|
resources:
|
||||||
- helm-release.yaml
|
- helm-release.yaml
|
||||||
- dashboard
|
- dashboard
|
||||||
|
- middlewares
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- local-only-access.yaml
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: rfc1918-ips
|
||||||
|
namespace: networking
|
||||||
|
spec:
|
||||||
|
ipWhiteList:
|
||||||
|
sourceRange:
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.168.0.0/16
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: local-only-access
|
||||||
|
namespace: networking
|
||||||
|
spec:
|
||||||
|
chain:
|
||||||
|
middlewares:
|
||||||
|
- name: rfc1918-ips
|
||||||
Reference in new issue
Block a user