Skip to content

Commit

Permalink
feat(PiHole): Drop on IOT Network
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurVardevanyan committed Dec 26, 2024
1 parent b163f6a commit 94c8633
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions kubernetes/homeassistant/base/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ spec:
[{
"name": "br1-vlan3",
"namespace": "default",
"mac": "10:01:01:00:30:02",
"ips": ["10.101.3.2/24"],
"mac": "10:01:01:00:30:04",
"ips": ["10.101.3.4/24"],
"default-route": ["10.101.3.1"]
},
{
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/kubevirt/base/vm/vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
model: virtio
name: br1
- bridge: {}
macAddress: "10:01:01:00:30:03"
macAddress: "10:01:01:00:30:05"
model: virtio
name: br1-vlan3
networkInterfaceMultiqueue: true
Expand Down
9 changes: 8 additions & 1 deletion kubernetes/pihole/base/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ spec:
app: pihole
annotations:
enable.version-checker.io/pihole: "true"
k8s.v1.cni.cncf.io/networks: |
[{
"name": "br1-vlan3",
"namespace": "default",
"mac": "10:01:01:00:30:03",
"ips": ["10.101.3.3/24"],
}]
spec:
hostname: pihole
securityContext:
Expand Down Expand Up @@ -98,7 +105,7 @@ spec:
cpu: 250m
memory: 1Gi
requests:
cpu: 10m
cpu: 25m
memory: 512Mi
automountServiceAccountToken: false
serviceAccountName: pihole
Expand Down
7 changes: 7 additions & 0 deletions kubernetes/pihole/overlays/microshift/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ resources:
- ingress.yaml
- service.yaml
- certificate.yaml
patches:
- target:
kind: StatefulSet
name: pihole
patch: |-
- op: remove
path: /spec/template/metadata/annotations/k8s.v1.cni.cncf.io~1networks
4 changes: 2 additions & 2 deletions kubernetes/pihole/overlays/okd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ resources:
- ./egress-firewall.yaml
patches:
- target:
kind: Statefulset
name: PiHole
kind: StatefulSet
name: pihole
patch: |-
- op: remove
path: /spec/template/spec/containers/0/ports/1/hostPort
Expand Down

0 comments on commit 94c8633

Please sign in to comment.