martinohmann / home-ops

Wife approved HomeOps driven by Kubernetes and GitOps using Flux
MIT License
14 stars 0 forks source link

chore: move external-apps to networking namespace #1174

Closed martinohmann closed 3 months ago

github-actions[bot] commented 3 months ago

kustomization changes in kubernetes/main

--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/adguard

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/adguard

@@ -1,14 +0,0 @@

----
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: adguard
-  namespace: default
-spec:
-  externalName: adguard.18b.lan.
-  type: ExternalName
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/adguard

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/adguard

@@ -1,27 +0,0 @@

----
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: adguard
-  namespace: default
-spec:
-  ingressClassName: internal
-  rules:
-  - host: adguard.18b.haus
-    http:
-      paths:
-      - backend:
-          service:
-            name: adguard
-            port:
-              number: 3000
-        path: /
-        pathType: Prefix
-  tls:
-  - hosts:
-    - adguard.18b.haus
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/fritzbox

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/fritzbox

@@ -1,14 +0,0 @@

----
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: fritzbox
-  namespace: default
-spec:
-  externalName: fritz.box.
-  type: ExternalName
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/fritzbox

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/fritzbox

@@ -1,30 +0,0 @@

----
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
-  annotations:
-    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
-    nginx.ingress.kubernetes.io/upstream-vhost: fritz.box
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: fritzbox
-  namespace: default
-spec:
-  ingressClassName: internal
-  rules:
-  - host: fritzbox.18b.haus
-    http:
-      paths:
-      - backend:
-          service:
-            name: fritzbox
-            port:
-              number: 443
-        path: /
-        pathType: Prefix
-  tls:
-  - hosts:
-    - fritzbox.18b.haus
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/opnsense

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/opnsense

@@ -1,14 +0,0 @@

----
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: opnsense
-  namespace: default
-spec:
-  externalName: opnsense.18b.lan.
-  type: ExternalName
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/opnsense

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/opnsense

@@ -1,29 +0,0 @@

----
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
-  annotations:
-    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: opnsense
-  namespace: default
-spec:
-  ingressClassName: internal
-  rules:
-  - host: opnsense.18b.haus
-    http:
-      paths:
-      - backend:
-          service:
-            name: opnsense
-            port:
-              number: 443
-        path: /
-        pathType: Prefix
-  tls:
-  - hosts:
-    - opnsense.18b.haus
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/pikvm

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/pikvm

@@ -1,14 +0,0 @@

----
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: pikvm
-  namespace: default
-spec:
-  externalName: pikvm.18b.lan.
-  type: ExternalName
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/pikvm

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/pikvm

@@ -1,29 +0,0 @@

----
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
-  annotations:
-    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: pikvm
-  namespace: default
-spec:
-  ingressClassName: internal
-  rules:
-  - host: pikvm.18b.haus
-    http:
-      paths:
-      - backend:
-          service:
-            name: pikvm
-            port:
-              number: 443
-        path: /
-        pathType: Prefix
-  tls:
-  - hosts:
-    - pikvm.18b.haus
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/pve

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/pve

@@ -1,17 +0,0 @@

----
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: pve
-  namespace: default
-spec:
-  ports:
-  - name: https
-    port: 443
-    protocol: TCP
-    targetPort: 8006
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps EndpointSlice: default/pve

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps EndpointSlice: default/pve

@@ -1,23 +0,0 @@

----
-addressType: IPv4
-apiVersion: discovery.k8s.io/v1
-endpoints:
-- addresses:
-  - 192.168.1.20
-  - 192.168.1.21
-  - 192.168.1.22
-kind: EndpointSlice
-metadata:
-  labels:
-    app.kubernetes.io/name: external-apps
-    kubernetes.io/service-name: pve
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: pve
-  namespace: default
-ports:
-- appProtocol: https
-  name: https
-  port: 8006
-  protocol: TCP
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/pve

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/pve

@@ -1,30 +0,0 @@

----
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
-  annotations:
-    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
-    nginx.ingress.kubernetes.io/upstream-hash-by: $host
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: pve
-  namespace: default
-spec:
-  ingressClassName: internal
-  rules:
-  - host: pve.18b.haus
-    http:
-      paths:
-      - backend:
-          service:
-            name: pve
-            port:
-              number: 443
-        path: /
-        pathType: Prefix
-  tls:
-  - hosts:
-    - pve.18b.haus
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/unifi

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Service: default/unifi

@@ -1,14 +0,0 @@

----
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: unifi
-  namespace: default
-spec:
-  externalName: unifi.18b.lan.
-  type: ExternalName
-
--- kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/unifi

+++ kubernetes/main/apps/default/external-apps/config Kustomization: flux-system/external-apps Ingress: default/unifi

@@ -1,29 +0,0 @@

----
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
-  annotations:
-    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
-  labels:
-    app.kubernetes.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/name: external-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: unifi
-  namespace: default
-spec:
-  ingressClassName: internal
-  rules:
-  - host: unifi.18b.haus
-    http:
-      paths:
-      - backend:
-          service:
-            name: unifi
-            port:
-              number: 8443
-        path: /
-        pathType: Prefix
-  tls:
-  - hosts:
-    - unifi.18b.haus
-
--- kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/external-apps

+++ kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/external-apps

@@ -13,13 +13,13 @@

       app.kubernetes.io/name: external-apps
   decryption:
     provider: sops
     secretRef:
       name: sops-age
   interval: 2h
-  path: ./kubernetes/main/apps/default/external-apps/config
+  path: ./kubernetes/main/apps/networking/external-apps/config
   postBuild:
     substituteFrom:
     - kind: Secret
       name: cluster-secrets
   prune: true
   retryInterval: 1m
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/adguard

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/adguard

@@ -0,0 +1,14 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: adguard
+  namespace: default
+spec:
+  externalName: adguard.18b.lan.
+  type: ExternalName
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/adguard

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/adguard

@@ -0,0 +1,27 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: adguard
+  namespace: default
+spec:
+  ingressClassName: internal
+  rules:
+  - host: adguard.18b.haus
+    http:
+      paths:
+      - backend:
+          service:
+            name: adguard
+            port:
+              number: 3000
+        path: /
+        pathType: Prefix
+  tls:
+  - hosts:
+    - adguard.18b.haus
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/fritzbox

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/fritzbox

@@ -0,0 +1,14 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: fritzbox
+  namespace: default
+spec:
+  externalName: fritz.box.
+  type: ExternalName
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/fritzbox

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/fritzbox

@@ -0,0 +1,30 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  annotations:
+    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
+    nginx.ingress.kubernetes.io/upstream-vhost: fritz.box
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: fritzbox
+  namespace: default
+spec:
+  ingressClassName: internal
+  rules:
+  - host: fritzbox.18b.haus
+    http:
+      paths:
+      - backend:
+          service:
+            name: fritzbox
+            port:
+              number: 443
+        path: /
+        pathType: Prefix
+  tls:
+  - hosts:
+    - fritzbox.18b.haus
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/opnsense

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/opnsense

@@ -0,0 +1,14 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: opnsense
+  namespace: default
+spec:
+  externalName: opnsense.18b.lan.
+  type: ExternalName
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/opnsense

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/opnsense

@@ -0,0 +1,29 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  annotations:
+    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: opnsense
+  namespace: default
+spec:
+  ingressClassName: internal
+  rules:
+  - host: opnsense.18b.haus
+    http:
+      paths:
+      - backend:
+          service:
+            name: opnsense
+            port:
+              number: 443
+        path: /
+        pathType: Prefix
+  tls:
+  - hosts:
+    - opnsense.18b.haus
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/pikvm

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/pikvm

@@ -0,0 +1,14 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: pikvm
+  namespace: default
+spec:
+  externalName: pikvm.18b.lan.
+  type: ExternalName
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/pikvm

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/pikvm

@@ -0,0 +1,29 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  annotations:
+    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: pikvm
+  namespace: default
+spec:
+  ingressClassName: internal
+  rules:
+  - host: pikvm.18b.haus
+    http:
+      paths:
+      - backend:
+          service:
+            name: pikvm
+            port:
+              number: 443
+        path: /
+        pathType: Prefix
+  tls:
+  - hosts:
+    - pikvm.18b.haus
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/pve

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/pve

@@ -0,0 +1,17 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: pve
+  namespace: default
+spec:
+  ports:
+  - name: https
+    port: 443
+    protocol: TCP
+    targetPort: 8006
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps EndpointSlice: default/pve

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps EndpointSlice: default/pve

@@ -0,0 +1,23 @@

+---
+addressType: IPv4
+apiVersion: discovery.k8s.io/v1
+endpoints:
+- addresses:
+  - 192.168.1.20
+  - 192.168.1.21
+  - 192.168.1.22
+kind: EndpointSlice
+metadata:
+  labels:
+    app.kubernetes.io/name: external-apps
+    kubernetes.io/service-name: pve
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: pve
+  namespace: default
+ports:
+- appProtocol: https
+  name: https
+  port: 8006
+  protocol: TCP
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/pve

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/pve

@@ -0,0 +1,30 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  annotations:
+    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
+    nginx.ingress.kubernetes.io/upstream-hash-by: $host
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: pve
+  namespace: default
+spec:
+  ingressClassName: internal
+  rules:
+  - host: pve.18b.haus
+    http:
+      paths:
+      - backend:
+          service:
+            name: pve
+            port:
+              number: 443
+        path: /
+        pathType: Prefix
+  tls:
+  - hosts:
+    - pve.18b.haus
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/unifi

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Service: default/unifi

@@ -0,0 +1,14 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: unifi
+  namespace: default
+spec:
+  externalName: unifi.18b.lan.
+  type: ExternalName
+
--- kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/unifi

+++ kubernetes/main/apps/networking/external-apps/config Kustomization: flux-system/external-apps Ingress: default/unifi

@@ -0,0 +1,29 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  annotations:
+    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
+  labels:
+    app.kubernetes.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/name: external-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: unifi
+  namespace: default
+spec:
+  ingressClassName: internal
+  rules:
+  - host: unifi.18b.haus
+    http:
+      paths:
+      - backend:
+          service:
+            name: unifi
+            port:
+              number: 8443
+        path: /
+        pathType: Prefix
+  tls:
+  - hosts:
+    - unifi.18b.haus
+