Skip to content

Commit

Permalink
feat(ingress-nas-pihole): add ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoSplinter committed Dec 15, 2024
1 parent c319032 commit 9053d4b
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ kind: Kustomization
namespace: network
resources:
- ./nas.yaml
- ./octopi.yaml
- ./pihole.yaml
21 changes: 21 additions & 0 deletions kubernetes/apps/network/external-svc/svc/nas.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nas
namespace: network
annotations:
external-dns.alpha.kubernetes.io/target: internal.${SECRET_DOMAIN}
spec:
ingressClassName: internal
rules:
- host: nas.${SECRET_DOMAIN}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: nas
port:
number: 443
---
apiVersion: v1
kind: Service
metadata:
Expand Down
26 changes: 0 additions & 26 deletions kubernetes/apps/network/external-svc/svc/octopi.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions kubernetes/apps/network/external-svc/svc/pihole.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: pihole
namespace: network
annotations:
external-dns.alpha.kubernetes.io/target: internal.${SECRET_DOMAIN}
spec:
ingressClassName: internal
rules:
- host: pihole.${SECRET_DOMAIN}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: pihole
port:
number: 80
---
apiVersion: v1
kind: Service
metadata:
Expand Down

0 comments on commit 9053d4b

Please sign in to comment.