This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #12: Add Pi-hole configuration to the cluster, with usage instr…
…uctions.
- Loading branch information
1 parent
b6ce33a
commit 3f948d0
Showing
5 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,3 +49,6 @@ | |
|
||
- role: minecraft | ||
tags: ['minecraft'] | ||
|
||
- role: pihole | ||
tags: ['pihole'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Pi-hole Setup | ||
|
||
## Admin UI Setup | ||
|
||
To access the Pi-hole admin UI, you'll need to point the hostname `pi.hole` at the IP address of the Pi where ingress is routed. You can find that IP address by running the following `kubectl` command: | ||
|
||
``` | ||
# kubectl get ing -n pihole | ||
NAME HOSTS ADDRESS PORTS AGE | ||
pihole chart-example.local,pi.hole 10.0.100.99 80 55s | ||
``` | ||
|
||
Take the value of the `ADDRESS` and add a line like the following to your `/etc/hosts` file: | ||
|
||
10.0.100.99 pi.hole | ||
|
||
Then you can access `http://pi.hole/` in your browser and view the admin UI. | ||
|
||
## DNS setup | ||
|
||
TODO. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
collections: | ||
- community.kubernetes | ||
|
||
dependencies: | ||
- geerlingguy.helm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
- name: Create pihole namespace. | ||
k8s: | ||
name: pihole | ||
api_version: v1 | ||
kind: Namespace | ||
state: present | ||
|
||
- name: Add mojo2600 chart repo. | ||
helm_repository: | ||
name: mojo2600 | ||
repo_url: "https://mojo2600.github.io/pihole-kubernetes/" | ||
|
||
- name: Deploy pihole Helm chart. | ||
helm: | ||
name: pihole | ||
chart_ref: mojo2600/pihole | ||
chart_version: '1.7.6' | ||
release_namespace: pihole | ||
state: present | ||
values: | ||
persistentVolumeClaim: | ||
enabled: true | ||
ingress: | ||
enabled: true | ||
serviceTCP: | ||
loadBalancerIP: '10.0.100.99' | ||
type: LoadBalancer | ||
serviceUDP: | ||
loadBalancerIP: '10.0.100.99' | ||
type: LoadBalancer | ||
resources: | ||
limits: | ||
cpu: 200m | ||
memory: 256Mi | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
# If using in the real world, set up admin.existingSecret instead. | ||
adminPassword: admin |