external-dns working
This commit is contained in:
parent
ee9a6b9894
commit
a38d1a9762
8 changed files with 52 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
CF_API_TOKEN=e70d7d13-32a8-4f77-9afa-6faced4ea0e5
|
cf_api_token=e70d7d13-32a8-4f77-9afa-6faced4ea0e5
|
1
.envs/.pihole.template
Normal file
1
.envs/.pihole.template
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pihole_password=4cae2867-5ad0-4205-9070-99a4a7f59a09
|
19
README.md
Normal file
19
README.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# gitops
|
||||||
|
This repository contains core services for my kubernetes cluster which are
|
||||||
|
- MetalLB - LoadBalancer
|
||||||
|
- Ingress Nginx - Ingress Controller
|
||||||
|
- CSI NFS - PVC
|
||||||
|
- PiHole and ExternalDNS - LAN DNS
|
||||||
|
- ArgoCD - GitOps for my other services
|
||||||
|
## How to use
|
||||||
|
|
||||||
|
1. Get the secrets
|
||||||
|
Either manually put your secrets in .env or run `./scripts/bw2secrets` - TODO
|
||||||
|
|
||||||
|
2. Apply Kustomizations
|
||||||
|
`kubectl apply -k .`
|
||||||
|
|
||||||
|
3. Install all the apps
|
||||||
|
`helmfile apply`
|
||||||
|
|
||||||
|
4. Profit!
|
|
@ -11,6 +11,8 @@ repositories:
|
||||||
url: https://argoproj.github.io/argo-helm
|
url: https://argoproj.github.io/argo-helm
|
||||||
- name: mojo2600
|
- name: mojo2600
|
||||||
url: https://mojo2600.github.io/pihole-kubernetes/
|
url: https://mojo2600.github.io/pihole-kubernetes/
|
||||||
|
- name: bitnami
|
||||||
|
url: https://charts.bitnami.com/bitnami
|
||||||
---
|
---
|
||||||
releases:
|
releases:
|
||||||
- name: metallb
|
- name: metallb
|
||||||
|
@ -44,4 +46,10 @@ releases:
|
||||||
chart: mojo2600/pihole
|
chart: mojo2600/pihole
|
||||||
version: 2.27.0
|
version: 2.27.0
|
||||||
values:
|
values:
|
||||||
- ./values/pihole.values.yaml
|
- ./values/pihole.values.yaml
|
||||||
|
- name: external-dns-pihole
|
||||||
|
namespace: pihole
|
||||||
|
chart: bitnami/external-dns
|
||||||
|
version: 8.7.3
|
||||||
|
values:
|
||||||
|
- ./values/external-dns-pihole.values.yaml
|
|
@ -6,11 +6,18 @@ resources:
|
||||||
- ./kustomize/csi-driver-nfs.yaml
|
- ./kustomize/csi-driver-nfs.yaml
|
||||||
- ./kustomize/cert-manager-cloudflare.yaml
|
- ./kustomize/cert-manager-cloudflare.yaml
|
||||||
|
|
||||||
|
|
||||||
secretGenerator:
|
secretGenerator:
|
||||||
- name: cert-manager-cloudflare
|
- name: cert-manager-cloudflare
|
||||||
envs:
|
envs:
|
||||||
- .envs/.cloudflare
|
- .envs/.cloudflare
|
||||||
namespace: cert-manager
|
namespace: cert-manager
|
||||||
|
- name: pihole-admin
|
||||||
|
envs:
|
||||||
|
- .envs/.pihole
|
||||||
|
namespace: pihole
|
||||||
|
options:
|
||||||
|
disableNameSuffixHash: true
|
||||||
|
|
||||||
configurations:
|
configurations:
|
||||||
- ./kustomizeconfig/clusterIssuer.yaml
|
- ./kustomizeconfig/clusterIssuer.yaml
|
||||||
|
|
|
@ -15,4 +15,4 @@ spec:
|
||||||
email: kropikuba@gmail.com
|
email: kropikuba@gmail.com
|
||||||
apiTokenSecretRef:
|
apiTokenSecretRef:
|
||||||
name: cert-manager-cloudflare
|
name: cert-manager-cloudflare
|
||||||
key: CF_API_TOKEN
|
key: cf_api_token
|
10
values/external-dns-pihole.values.yaml
Normal file
10
values/external-dns-pihole.values.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
txtOwnerId: kropcloud
|
||||||
|
policy: upsert-only
|
||||||
|
|
||||||
|
provider: pihole
|
||||||
|
pihole:
|
||||||
|
server: http://pihole-web.pihole.svc.cluster.local
|
||||||
|
secretName: pihole-admin
|
||||||
|
|
||||||
|
ingressClassFilters:
|
||||||
|
- ingress-nginx
|
|
@ -11,6 +11,10 @@ ingress:
|
||||||
- pihole.kropcloud.net
|
- pihole.kropcloud.net
|
||||||
secretName: pihole-tls
|
secretName: pihole-tls
|
||||||
|
|
||||||
|
admin:
|
||||||
|
existingSecret: pihole-admin
|
||||||
|
passwordKey: pihole_password
|
||||||
|
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue