Skip to content
This repository has been archived by the owner on Feb 22, 2025. It is now read-only.

Commit

Permalink
Move Adguard as the external DNS.
Browse files Browse the repository at this point in the history
Coredns should only serve internal DNS requests, and let Adguard handle requests to *.kalexlab.xyz.
  • Loading branch information
AlessandroZanatta committed Jan 17, 2025
1 parent 57026df commit a9efda8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions helm/cilium/extra/coredns-ip-pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
apiVersion: "cilium.io/v2alpha1"
kind: CiliumLoadBalancerIPPool
metadata:
name: pool-coredns
name: pool-adguard
spec:
blocks:
- cidr: "192.168.10.21/32"
serviceSelector:
matchLabels:
kalexlab.xyz/ip-pool: coredns
kalexlab.xyz/ip-pool: adguard
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumL2AnnouncementPolicy
Expand All @@ -20,4 +20,4 @@ spec:
loadBalancerIPs: true
serviceSelector:
matchLabels:
kalexlab.xyz/ip-pool: coredns
kalexlab.xyz/ip-pool: adguard
13 changes: 5 additions & 8 deletions helm/coredns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ prometheus:
service:
clusterIP: "10.32.0.254"

customLabels:
kalexlab.xyz/ip-pool: coredns

servers:
- zones:
- zone: .
Expand All @@ -30,7 +27,7 @@ servers:
# hostPort: 53
plugins:
# - name: debug
# - name: log
- name: log
- name: errors
# Serves a /health endpoint on :8080, required for livenessProbe
- name: health
Expand All @@ -47,12 +44,12 @@ servers:
ttl 30
- name: forward
parameters: ". 10.32.0.253 1.1.1.1"
configBlock: |-
policy sequential
parameters: "kalexlab.xyz. 10.32.0.253"
- name: forward
parameters: ". 1.1.1.1"

- name: prometheus
parameters: 0.0.0.0:9153
parameters: "0.0.0.0:9153"

- name: loop
- name: reload
Expand Down
1 change: 1 addition & 0 deletions kubernetes/management/adguard/adguard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
name: adguard
labels:
kalexlab.xyz/app: adguard
kalexlab.xyz/ip-pool: adguard
spec:
type: ClusterIP
clusterIP: 10.32.0.253
Expand Down

0 comments on commit a9efda8

Please sign in to comment.