diff --git a/Supercluster/Cluster01/Metallb/IPAddressPool.yaml b/Supercluster/Cluster01/Metallb/IPAddressPool.yaml index bb80465..2297d63 100644 --- a/Supercluster/Cluster01/Metallb/IPAddressPool.yaml +++ b/Supercluster/Cluster01/Metallb/IPAddressPool.yaml @@ -14,16 +14,6 @@ spec: addresses: - 192.168.1.200-192.168.1.250 # 50 addresses. --- -# This is a static ip address for PiHole (DNS). -apiVersion: metallb.io/v1beta1 -kind: IPAddressPool -metadata: - name: static-ip-1 - namespace: metallb-system -spec: - addresses: - - 192.168.1.120/32 # 1 address. ---- # This is a static IP address for the proxy that is used for accessing the master nodes. apiVersion: metallb.io/v1beta1 kind: IPAddressPool diff --git a/Supercluster/Cluster01/PiHole/Deployment.yaml b/Supercluster/Cluster01/PiHole/Deployment.yaml deleted file mode 100644 index e1eaab1..0000000 --- a/Supercluster/Cluster01/PiHole/Deployment.yaml +++ /dev/null @@ -1,54 +0,0 @@ -############################ -# @author Elias De Hondt # -# @see https://eliasdh.com # -# @since 24/11/2024 # -############################ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: pihole - namespace: pihole - labels: - app: pihole -spec: - replicas: 1 - selector: - matchLabels: - app: pihole - template: - metadata: - labels: - app: pihole - spec: - containers: - - name: pihole - image: pihole/pihole:latest - ports: - - containerPort: 53 - protocol: UDP - - containerPort: 53 - protocol: TCP - - containerPort: 80 - - containerPort: 443 - env: - - name: ServerIP - value: "0.0.0.0" - - name: WEBPASSWORD - valueFrom: - secretKeyRef: - name: pihole-secret - key: WEBPASSWORD - volumeMounts: - - name: pihole1-storage - mountPath: /etc/pihole - - name: pihole2-storage - mountPath: /etc/dnsmasq.d - volumes: - - name: pihole1-storage - persistentVolumeClaim: - claimName: pihole1-pvc - - name: pihole2-storage - persistentVolumeClaim: - claimName: pihole2-pvc ---- \ No newline at end of file diff --git a/Supercluster/Cluster01/PiHole/Namespace.yaml b/Supercluster/Cluster01/PiHole/Namespace.yaml deleted file mode 100644 index bcaf52a..0000000 --- a/Supercluster/Cluster01/PiHole/Namespace.yaml +++ /dev/null @@ -1,19 +0,0 @@ -############################ -# @author Elias De Hondt # -# @see https://eliasdh.com # -# @since 24/11/2024 # -############################ ---- -apiVersion: v1 -kind: Namespace -metadata: - name: pihole - labels: - name: pihole - app: pihole - owner: EliasDH - environment: production - annotations: - description: This namespace is used for the pihole application. - contact: info@eliasdh.com ---- \ No newline at end of file diff --git a/Supercluster/Cluster01/PiHole/PersistentVolumeClaim.yaml b/Supercluster/Cluster01/PiHole/PersistentVolumeClaim.yaml deleted file mode 100644 index 17ac122..0000000 --- a/Supercluster/Cluster01/PiHole/PersistentVolumeClaim.yaml +++ /dev/null @@ -1,34 +0,0 @@ -############################ -# @author Elias De Hondt # -# @see https://eliasdh.com # -# @since 24/11/2024 # -############################ ---- -# For PiHole -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: pihole1-pvc - namespace: pihole -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi - storageClassName: longhorn ---- -# For DNSMasq -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: pihole2-pvc - namespace: pihole -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi - storageClassName: longhorn ---- diff --git a/Supercluster/Cluster01/PiHole/Service.yaml b/Supercluster/Cluster01/PiHole/Service.yaml deleted file mode 100644 index 116ef27..0000000 --- a/Supercluster/Cluster01/PiHole/Service.yaml +++ /dev/null @@ -1,36 +0,0 @@ -############################ -# @author Elias De Hondt # -# @see https://eliasdh.com # -# @since 24/11/2024 # -############################ ---- -apiVersion: v1 -kind: Service -metadata: - name: pihole-service - namespace: pihole - annotations: - metallb.universe.tf/address-pool: static-ip-1 -spec: - selector: - app: pihole - ports: - - name: dns-tcp - protocol: TCP - port: 53 - targetPort: 53 - - name: dns-udp - protocol: UDP - port: 53 - targetPort: 53 - - name: http - protocol: TCP - port: 80 - targetPort: 80 - - name: https - protocol: TCP - port: 443 - targetPort: 443 - type: LoadBalancer - loadBalancerIP: 192.168.1.120 # Static IP from the Metallb IPAddressPool (static-ip-1) ---- \ No newline at end of file