mirror of
				https://github.com/optim-enterprises-bv/homelab.git
				synced 2025-10-31 09:57:59 +00:00 
			
		
		
		
	fix(dns): Pinning DNS IPs and cleaning up related services
This commit is contained in:
		| @@ -4,9 +4,8 @@ metadata: | |||||||
|   name: jellyfin-svc |   name: jellyfin-svc | ||||||
|   namespace: jellyfin |   namespace: jellyfin | ||||||
| spec: | spec: | ||||||
|   type: LoadBalancer |   selector: | ||||||
|  |     app: jellyfin | ||||||
|   ports: |   ports: | ||||||
|     - name: web |     - name: web | ||||||
|       port: 8096 |       port: 8096 | ||||||
|   selector: |  | ||||||
|     app: jellyfin |  | ||||||
| @@ -3,9 +3,9 @@ kind: Service | |||||||
| metadata: | metadata: | ||||||
|   name: plex |   name: plex | ||||||
| spec: | spec: | ||||||
|  |   selector: | ||||||
|  |     app: plex | ||||||
|   type: LoadBalancer |   type: LoadBalancer | ||||||
|   ports: |   ports: | ||||||
|     - name: web |     - name: web | ||||||
|       port: 32400 |       port: 32400 | ||||||
|   selector: |  | ||||||
|     app: plex |  | ||||||
| @@ -9,7 +9,7 @@ spec: | |||||||
|     - match: Host(`net-aux.stonegarden.dev`) |     - match: Host(`net-aux.stonegarden.dev`) | ||||||
|       kind: Rule |       kind: Rule | ||||||
|       services: |       services: | ||||||
|         - name: pi-hole-web |         - name: net-aux | ||||||
|           port: http |           port: http | ||||||
|       middlewares: |       middlewares: | ||||||
|         - name: traefik-forward-auth |         - name: traefik-forward-auth | ||||||
| @@ -1,74 +1,46 @@ | |||||||
| --- |  | ||||||
| kind: Service | kind: Service | ||||||
| apiVersion: v1 | apiVersion: v1 | ||||||
| metadata: | metadata: | ||||||
|   name: pi-hole-dns-udp |   name: net-aux | ||||||
|   namespace: net-aux |   namespace: net-aux | ||||||
|   annotations: |   annotations: | ||||||
|  |     metallb.universe.tf/loadBalancerIPs: 192.168.1.153 | ||||||
|     metallb.universe.tf/allow-shared-ip: net-aux |     metallb.universe.tf/allow-shared-ip: net-aux | ||||||
| spec: | spec: | ||||||
|   selector: |   selector: | ||||||
|     app: net-aux |     app: net-aux | ||||||
|   ports: |  | ||||||
|     - name: dns-udp |  | ||||||
|       port: 53 |  | ||||||
|       protocol: UDP |  | ||||||
|       targetPort: dns-udp |  | ||||||
|   type: LoadBalancer |   type: LoadBalancer | ||||||
| --- |  | ||||||
| kind: Service |  | ||||||
| apiVersion: v1 |  | ||||||
| metadata: |  | ||||||
|   name: pi-hole-dns-tcp |  | ||||||
|   namespace: net-aux |  | ||||||
|   annotations: |  | ||||||
|     metallb.universe.tf/allow-shared-ip: net-aux |  | ||||||
| spec: |  | ||||||
|   selector: |  | ||||||
|     app: net-aux |  | ||||||
|   ports: |  | ||||||
|     - name: dns-tcp |  | ||||||
|       port: 53 |  | ||||||
|       protocol: TCP |  | ||||||
|       targetPort: dns-tcp |  | ||||||
|   type: LoadBalancer |  | ||||||
| --- |  | ||||||
| kind: Service |  | ||||||
| apiVersion: v1 |  | ||||||
| metadata: |  | ||||||
|   name: pi-hole-web |  | ||||||
|   namespace: net-aux |  | ||||||
|   annotations: |  | ||||||
|     metallb.universe.tf/allow-shared-ip: net-aux |  | ||||||
| spec: |  | ||||||
|   selector: |  | ||||||
|     app: net-aux |  | ||||||
|   ports: |  | ||||||
|     - name: http |  | ||||||
|       port: 80 |  | ||||||
|       targetPort: http |  | ||||||
|     - name: https |  | ||||||
|       port: 443 |  | ||||||
|       targetPort: https |  | ||||||
|   type: LoadBalancer |  | ||||||
| --- |  | ||||||
| kind: Service |  | ||||||
| apiVersion: v1 |  | ||||||
| metadata: |  | ||||||
|   name: unbound-dns |  | ||||||
|   namespace: net-aux |  | ||||||
|   annotations: |  | ||||||
|     metallb.universe.tf/allow-shared-ip: net-aux |  | ||||||
| spec: |  | ||||||
|   selector: |  | ||||||
|     app: net-aux |  | ||||||
|   ports: |   ports: | ||||||
|     - name: unbound-dns-tcp |     - name: unbound-dns-tcp | ||||||
|       port: 5335 |       port: 5335 | ||||||
|       protocol: TCP |       protocol: TCP | ||||||
|       targetPort: unbound-dns-tcp |       targetPort: unbound-dns-tcp | ||||||
|  |     - name: dns-tcp | ||||||
|  |       port: 53 | ||||||
|  |       protocol: TCP | ||||||
|  |       targetPort: dns-tcp | ||||||
|  |     - name: http | ||||||
|  |       port: 80 | ||||||
|  |       targetPort: http | ||||||
|  | --- | ||||||
|  | kind: Service | ||||||
|  | apiVersion: v1 | ||||||
|  | metadata: | ||||||
|  |   name: net-aux-udp | ||||||
|  |   namespace: net-aux | ||||||
|  |   annotations: | ||||||
|  |     metallb.universe.tf/loadBalancerIPs: 192.168.1.153 | ||||||
|  |     metallb.universe.tf/allow-shared-ip: net-aux | ||||||
|  | spec: | ||||||
|  |   selector: | ||||||
|  |     app: net-aux | ||||||
|  |   type: LoadBalancer | ||||||
|  |   ports: | ||||||
|     - name: unbound-dns-udp |     - name: unbound-dns-udp | ||||||
|       port: 5335 |       port: 5335 | ||||||
|       protocol: UDP |       protocol: UDP | ||||||
|       targetPort: unbound-dns-udp |       targetPort: unbound-dns-udp | ||||||
|   type: LoadBalancer |     - name: dns-udp | ||||||
|  |       port: 53 | ||||||
|  |       protocol: UDP | ||||||
|  |       targetPort: dns-udp | ||||||
| @@ -1,2 +1,2 @@ | |||||||
| address=/stonegarden.dev/192.168.1.128 | address=/stonegarden.dev/192.168.1.128 | ||||||
| address=/stonegarden.lan/192.168.1.128 | edns-packet-max=1232 | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ spec: | |||||||
|     - match: Host(`pi-hole.stonegarden.dev`) |     - match: Host(`pi-hole.stonegarden.dev`) | ||||||
|       kind: Rule |       kind: Rule | ||||||
|       services: |       services: | ||||||
|         - name: pi-hole-web |         - name: pi-hole | ||||||
|           port: http |           port: http | ||||||
|       middlewares: |       middlewares: | ||||||
|         - name: traefik-forward-auth |         - name: traefik-forward-auth | ||||||
| @@ -1,53 +1,38 @@ | |||||||
| --- |  | ||||||
| kind: Service | kind: Service | ||||||
| apiVersion: v1 | apiVersion: v1 | ||||||
| metadata: | metadata: | ||||||
|   name: pi-hole-dns-udp |   name: pi-hole | ||||||
|   namespace: pi-hole |   namespace: pi-hole | ||||||
|   annotations: |   annotations: | ||||||
|  |     metallb.universe.tf/loadBalancerIPs: 192.168.1.154 | ||||||
|     metallb.universe.tf/allow-shared-ip: pi-hole |     metallb.universe.tf/allow-shared-ip: pi-hole | ||||||
| spec: | spec: | ||||||
|   selector: |   selector: | ||||||
|     app: pi-hole |     app: pi-hole | ||||||
|  |   type: LoadBalancer | ||||||
|  |   ports: | ||||||
|  |     - name: http | ||||||
|  |       port: 80 | ||||||
|  |       targetPort: http | ||||||
|  |     - name: dns-tcp | ||||||
|  |       port: 53 | ||||||
|  |       protocol: TCP | ||||||
|  |       targetPort: dns-tcp | ||||||
|  | --- | ||||||
|  | kind: Service | ||||||
|  | apiVersion: v1 | ||||||
|  | metadata: | ||||||
|  |   name: pi-hole-udp | ||||||
|  |   namespace: pi-hole | ||||||
|  |   annotations: | ||||||
|  |     metallb.universe.tf/loadBalancerIPs: 192.168.1.154 | ||||||
|  |     metallb.universe.tf/allow-shared-ip: pi-hole | ||||||
|  | spec: | ||||||
|  |   selector: | ||||||
|  |     app: pi-hole | ||||||
|  |   type: LoadBalancer | ||||||
|   ports: |   ports: | ||||||
|     - name: dns-udp |     - name: dns-udp | ||||||
|       port: 53 |       port: 53 | ||||||
|       protocol: UDP |       protocol: UDP | ||||||
|       targetPort: dns-udp |       targetPort: dns-udp | ||||||
|   type: LoadBalancer |  | ||||||
| --- |  | ||||||
| kind: Service |  | ||||||
| apiVersion: v1 |  | ||||||
| metadata: |  | ||||||
|   name: pi-hole-dns-tcp |  | ||||||
|   namespace: pi-hole |  | ||||||
|   annotations: |  | ||||||
|     metallb.universe.tf/allow-shared-ip: pi-hole |  | ||||||
| spec: |  | ||||||
|   selector: |  | ||||||
|     app: pi-hole |  | ||||||
|   ports: |  | ||||||
|     - name: dns-tcp |  | ||||||
|       port: 53 |  | ||||||
|       protocol: TCP |  | ||||||
|       targetPort: dns-tcp |  | ||||||
|   type: LoadBalancer |  | ||||||
| --- |  | ||||||
| kind: Service |  | ||||||
| apiVersion: v1 |  | ||||||
| metadata: |  | ||||||
|   name: pi-hole-web |  | ||||||
|   namespace: pi-hole |  | ||||||
|   annotations: |  | ||||||
|     metallb.universe.tf/allow-shared-ip: pi-hole |  | ||||||
| spec: |  | ||||||
|   selector: |  | ||||||
|     app: pi-hole |  | ||||||
|   ports: |  | ||||||
|     - name: http |  | ||||||
|       port: 80 |  | ||||||
|       targetPort: http |  | ||||||
|     - name: https |  | ||||||
|       port: 443 |  | ||||||
|       targetPort: https |  | ||||||
|   type: LoadBalancer |  | ||||||
|   | |||||||
| @@ -9,6 +9,10 @@ deployment: | |||||||
|         - name: data |         - name: data | ||||||
|           mountPath: /data |           mountPath: /data | ||||||
|  |  | ||||||
|  | services: | ||||||
|  |   annotations: | ||||||
|  |     metallb.universe.tf/loadBalancerIPs: 192.168.1.128 | ||||||
|  |  | ||||||
| providers: | providers: | ||||||
|   kubernetesCRD: |   kubernetesCRD: | ||||||
|     allowCrossNamespace: true |     allowCrossNamespace: true | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Vegard Hagen
					Vegard Hagen