diff --git a/modules/hetzner/networks.tf b/modules/hetzner/networks.tf index e1ca919..1522698 100644 --- a/modules/hetzner/networks.tf +++ b/modules/hetzner/networks.tf @@ -101,23 +101,6 @@ locals { port = 10001 protocol = "udp" }, - { - description = "PiHole DNS TCP" - source_ips = [ - local.global_ipv4_cidr, - local.global_ipv6_cidr, - ] - port = 53 - }, - { - description = "PiHole DNS UDP" - source_ips = [ - local.global_ipv4_cidr, - local.global_ipv6_cidr, - ] - port = 53 - protocol = "udp" - }, # Direct public access only allowed if single manager node { description = "Allow access to Kubernetes API" diff --git a/registry/clusters/dev/components/pihole.yaml b/registry/clusters/dev/components/pihole.yaml deleted file mode 100644 index ae63d53..0000000 --- a/registry/clusters/dev/components/pihole.yaml +++ /dev/null @@ -1,62 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: pihole-components - namespace: argocd - annotations: - argocd.argoproj.io/sync-wave: "10" - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: default - source: - repoURL: https://github.com/mrsimonemms/infrastructure - path: registry/components/pihole - targetRevision: HEAD - kustomize: - patches: - - target: - group: argoproj.io - version: v1alpha1 - kind: Application - name: pihole - patch: |- - - op: replace - path: /spec/source/helm/valuesObject/virtualHost - value: pihole.dev.simonemms.com - - target: - group: argoproj.io - version: v1alpha1 - kind: Application - name: pihole - patch: |- - - op: replace - path: /spec/source/helm/valuesObject/ingress/annotations/cert-manager.io~1cluster-issuer - value: letsencrypt-staging - - target: - group: argoproj.io - version: v1alpha1 - kind: Application - name: pihole - patch: |- - - op: replace - path: /spec/source/helm/valuesObject/ingress/hosts/0 - value: pihole.dev.simonemms.com - - target: - group: argoproj.io - version: v1alpha1 - kind: Application - name: pihole - patch: |- - - op: replace - path: /spec/source/helm/valuesObject/ingress/tls/0/hosts/0 - value: pihole.dev.simonemms.com - destination: - server: https://kubernetes.default.svc - namespace: pihole - syncPolicy: - automated: - prune: true - selfHeal: true - syncOptions: - - CreateNamespace=true diff --git a/registry/clusters/prod/components/pihole.yaml b/registry/clusters/prod/components/pihole.yaml deleted file mode 100644 index 51ac150..0000000 --- a/registry/clusters/prod/components/pihole.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: pihole-components - namespace: argocd - annotations: - argocd.argoproj.io/sync-wave: "10" - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: default - source: - repoURL: https://github.com/mrsimonemms/infrastructure - path: registry/components/pihole - targetRevision: HEAD - destination: - server: https://kubernetes.default.svc - namespace: pihole - syncPolicy: - automated: - prune: true - selfHeal: true - syncOptions: - - CreateNamespace=true