Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
fix: DNS ingress rules - GitHub runners (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
lholota authored Nov 8, 2023
1 parent 287b44f commit 4d64420
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions apps/common/values.lab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ networkPolicy:
- 10.1.8.23
servicesSubnetCidr: 10.1.8.0/24
consumerCidrs:
- 10.1.8.9/32 # GitHub runners
- 10.1.8.0/24
- 10.1.3.0/24

Expand Down
1 change: 1 addition & 0 deletions apps/common/values.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ networkPolicy:
- 10.1.2.23
servicesSubnetCidr: 10.1.2.0/24
consumerCidrs:
- 10.1.8.9/32 # GitHub runners
- 10.1.2.0/24
- 10.1.3.0/24

Expand Down
2 changes: 1 addition & 1 deletion apps/dns/templates/network-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
# Accept internal traffic (?)
- ipBlock:
cidr: 172.16.0.0/16
{{- range $cidr := .Values.networkPolicy.externalIngressIpBlocks }}
{{- range $cidr := .Values.networkPolicy.consumerCidrs }}
- ipBlock:
cidr: {{ $cidr }}
{{- end }}
Expand Down
3 changes: 0 additions & 3 deletions apps/dns/values.lab.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
networkPolicy:
externalIngressIpBlocks:
- 10.1.8.0/24
- 10.1.3.0/24
forwarders:
- 1.1.1.1
- 1.0.0.1
Expand Down
3 changes: 0 additions & 3 deletions apps/dns/values.prod.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
networkPolicy:
externalIngressIpBlocks:
- 10.1.8.0/24
- 10.1.3.0/24
forwarders:
- 1.1.1.1
- 1.0.0.1
Expand Down
2 changes: 1 addition & 1 deletion apps/haraka-relay/values.lab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ hostname: smtp-lab.homecentr.one
loadBalancerIp: 10.1.8.130

allowedClients:
- 10.1.8.224/27 # GitHub runners
- 10.1.8.9/32 # GitHub runners

resources:
limits:
Expand Down
2 changes: 1 addition & 1 deletion apps/haraka-relay/values.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ hostname: smtp.homecentr.one
loadBalancerIp: 10.1.2.130

allowedClients:
- 10.1.3.250/32 # GitHub runner
- 10.1.8.9/32 # GitHub runners
- 10.1.3.5/32 # Printer
- 10.1.2.211/32 # iDRAC
- 10.1.2.212/32 # iDRAC
Expand Down

0 comments on commit 4d64420

Please sign in to comment.