martinohmann / home-ops

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

chore(forgejo): switch DNS #1124

Closed martinohmann closed 1 month ago

github-actions[bot] commented 1 month ago

kustomization changes in kubernetes/main

--- kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/forgejo

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

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

   interval: 2h
   path: ./kubernetes/main/apps/default/forgejo/app
   postBuild:
     substitute:
       APP: forgejo
       GATUS_PATH: /api/healthz
-      GATUS_SUBDOMAIN: forgejo
+      GATUS_SUBDOMAIN: git
       VOLSYNC_CAPACITY: 20Gi
       VOLSYNC_MOVER_FS_GROUP: '1000'
       VOLSYNC_MOVER_GROUP: '1000'
       VOLSYNC_MOVER_USER: '1000'
       VOLSYNC_SCHEDULE_B2: 0 3 * * 0
       VOLSYNC_SCHEDULE_MINIO: 0 3 * * *
--- kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/gitea

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

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

   interval: 2h
   path: ./kubernetes/main/apps/default/gitea/app
   postBuild:
     substitute:
       APP: gitea
       GATUS_PATH: /api/healthz
-      GATUS_SUBDOMAIN: git
+      GATUS_SUBDOMAIN: gitea
       VOLSYNC_CAPACITY: 20Gi
       VOLSYNC_MOVER_FS_GROUP: '1000'
       VOLSYNC_MOVER_GROUP: '1000'
       VOLSYNC_MOVER_USER: '1000'
       VOLSYNC_SCHEDULE_B2: 0 3 * * 0
       VOLSYNC_SCHEDULE_MINIO: 0 3 * * *
--- kubernetes/main/apps/default/gitea/app Kustomization: flux-system/gitea HelmRelease: default/gitea

+++ kubernetes/main/apps/default/gitea/app Kustomization: flux-system/gitea HelmRelease: default/gitea

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

           TYPE: redis
         repository:
           DEFAULT_PRIVATE: private
         security:
           PASSWORD_COMPLEXITY: spec
         server:
-          SSH_DOMAIN: git-ssh.18b.haus
+          SSH_DOMAIN: gitea-ssh.18b.haus
           SSH_LISTEN_PORT: 2222
           SSH_PORT: 22
         service:
           ALLOW_ONLY_EXTERNAL_REGISTRATION: true
           DISABLE_REGISTRATION: false
           ENABLE_NOTIFY_MAIL: true
@@ -110,19 +110,19 @@

           location = /metrics {
             return 404;
           }
       className: internal
       enabled: true
       hosts:
-      - host: git.18b.haus
+      - host: gitea.18b.haus
         paths:
         - path: /
           pathType: Prefix
       tls:
       - hosts:
-        - git.18b.haus
+        - gitea.18b.haus
     persistence:
       claimName: gitea
       create: false
       enabled: true
     postgresql:
       enabled: false
@@ -130,14 +130,14 @@

       enabled: false
     redis-cluster:
       enabled: false
     service:
       ssh:
         annotations:
-          external-dns.alpha.kubernetes.io/hostname: git-ssh.18b.haus
-          io.cilium/lb-ipam-ips: 192.168.40.249
+          external-dns.alpha.kubernetes.io/hostname: gitea-ssh.18b.haus
+          io.cilium/lb-ipam-ips: 192.168.40.245
         port: 22
         type: LoadBalancer
     strategy:
       type: Recreate
   valuesFrom:
   - kind: Secret
--- kubernetes/main/apps/default/gitea/app Kustomization: flux-system/gitea Ingress: default/gitea-auth

+++ kubernetes/main/apps/default/gitea/app Kustomization: flux-system/gitea Ingress: default/gitea-auth

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

     kustomize.toolkit.fluxcd.io/namespace: flux-system
   name: gitea-auth
   namespace: default
 spec:
   ingressClassName: internal
   rules:
-  - host: git.18b.haus
+  - host: gitea.18b.haus
     http:
       paths:
       - backend:
           service:
             name: gitea-http
             port:
@@ -31,8 +31,8 @@

             port:
               number: 3000
         path: /user/forgot_password.*$
         pathType: Prefix
   tls:
   - hosts:
-    - git.18b.haus
+    - gitea.18b.haus

--- kubernetes/main/apps/default/gitea/app Kustomization: flux-system/gitea ConfigMap: default/gitea-gatus-ep

+++ kubernetes/main/apps/default/gitea/app Kustomization: flux-system/gitea ConfigMap: default/gitea-gatus-ep

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

 apiVersion: v1
 data:
   config.yaml: |
     endpoints:
       - name: "gitea"
         group: internal
-        url: "https://git.18b.haus/api/healthz"
+        url: "https://gitea.18b.haus/api/healthz"
         interval: 2m
         ui:
           hide-hostname: true
           hide-url: true
         conditions:
           - "[STATUS] == 200"
@@ -19,13 +19,13 @@

         url: 1.1.1.1
         interval: 1m
         ui:
           hide-hostname: true
           hide-url: true
         dns:
-          query-name: "git.18b.haus"
+          query-name: "gitea.18b.haus"
           query-type: A
         conditions:
           - "len([BODY]) == 0"
         alerts:
           - type: telegram
             description: exposed to the internet
--- kubernetes/main/apps/default/forgejo/app Kustomization: flux-system/forgejo HelmRelease: default/forgejo

+++ kubernetes/main/apps/default/forgejo/app Kustomization: flux-system/forgejo HelmRelease: default/forgejo

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

           TYPE: redis
         repository:
           DEFAULT_PRIVATE: private
         security:
           PASSWORD_COMPLEXITY: spec
         server:
-          SSH_DOMAIN: forgejo-ssh.18b.haus
+          SSH_DOMAIN: git-ssh.18b.haus
           SSH_LISTEN_PORT: 2222
           SSH_PORT: 22
         service:
           ALLOW_ONLY_EXTERNAL_REGISTRATION: true
           DISABLE_REGISTRATION: false
           ENABLE_NOTIFY_MAIL: true
@@ -111,19 +111,19 @@

           location = /metrics {
             return 404;
           }
       className: internal
       enabled: true
       hosts:
-      - host: forgejo.18b.haus
+      - host: git.18b.haus
         paths:
         - path: /
           pathType: Prefix
       tls:
       - hosts:
-        - forgejo.18b.haus
+        - git.18b.haus
     persistence:
       claimName: forgejo
       create: false
       enabled: true
     postgresql:
       enabled: false
@@ -131,14 +131,14 @@

       enabled: false
     redis-cluster:
       enabled: false
     service:
       ssh:
         annotations:
-          external-dns.alpha.kubernetes.io/hostname: forgejo-ssh.18b.haus
-          io.cilium/lb-ipam-ips: 192.168.40.245
+          external-dns.alpha.kubernetes.io/hostname: git-ssh.18b.haus
+          io.cilium/lb-ipam-ips: 192.168.40.249
         port: 22
         type: LoadBalancer
     strategy:
       type: Recreate
   valuesFrom:
   - kind: Secret
--- kubernetes/main/apps/default/forgejo/app Kustomization: flux-system/forgejo Ingress: default/forgejo-auth

+++ kubernetes/main/apps/default/forgejo/app Kustomization: flux-system/forgejo Ingress: default/forgejo-auth

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

     kustomize.toolkit.fluxcd.io/namespace: flux-system
   name: forgejo-auth
   namespace: default
 spec:
   ingressClassName: internal
   rules:
-  - host: forgejo.18b.haus
+  - host: git.18b.haus
     http:
       paths:
       - backend:
           service:
             name: forgejo-http
             port:
@@ -31,8 +31,8 @@

             port:
               number: 3000
         path: /user/forgot_password.*$
         pathType: Prefix
   tls:
   - hosts:
-    - forgejo.18b.haus
+    - git.18b.haus

--- kubernetes/main/apps/default/forgejo/app Kustomization: flux-system/forgejo ConfigMap: default/forgejo-gatus-ep

+++ kubernetes/main/apps/default/forgejo/app Kustomization: flux-system/forgejo ConfigMap: default/forgejo-gatus-ep

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

 apiVersion: v1
 data:
   config.yaml: |
     endpoints:
       - name: "forgejo"
         group: internal
-        url: "https://forgejo.18b.haus/api/healthz"
+        url: "https://git.18b.haus/api/healthz"
         interval: 2m
         ui:
           hide-hostname: true
           hide-url: true
         conditions:
           - "[STATUS] == 200"
@@ -19,13 +19,13 @@

         url: 1.1.1.1
         interval: 1m
         ui:
           hide-hostname: true
           hide-url: true
         dns:
-          query-name: "forgejo.18b.haus"
+          query-name: "git.18b.haus"
           query-type: A
         conditions:
           - "len([BODY]) == 0"
         alerts:
           - type: telegram
             description: exposed to the internet
github-actions[bot] commented 1 month ago

helmrelease changes in kubernetes/main

--- HelmRelease: default/gitea Service: default/gitea-ssh

+++ HelmRelease: default/gitea Service: default/gitea-ssh

@@ -7,14 +7,14 @@

     app: gitea
     app.kubernetes.io/name: gitea
     app.kubernetes.io/instance: gitea
     version: 1.22.0
     app.kubernetes.io/managed-by: Helm
   annotations:
-    external-dns.alpha.kubernetes.io/hostname: git-ssh.18b.haus
-    io.cilium/lb-ipam-ips: 192.168.40.249
+    external-dns.alpha.kubernetes.io/hostname: gitea-ssh.18b.haus
+    io.cilium/lb-ipam-ips: 192.168.40.245
 spec:
   type: LoadBalancer
   ports:
   - name: ssh
     port: 22
     targetPort: 2222
--- HelmRelease: default/gitea Ingress: default/gitea

+++ HelmRelease: default/gitea Ingress: default/gitea

@@ -21,16 +21,16 @@

         return 404;
       }
 spec:
   ingressClassName: internal
   tls:
   - hosts:
-    - git.18b.haus
+    - gitea.18b.haus
     secretName: null
   rules:
-  - host: git.18b.haus
+  - host: gitea.18b.haus
     http:
       paths:
       - path: /
         backend:
           serviceName: gitea-http
           servicePort: 3000
--- HelmRelease: default/forgejo Service: default/forgejo-ssh

+++ HelmRelease: default/forgejo Service: default/forgejo-ssh

@@ -7,14 +7,14 @@

     app: forgejo
     app.kubernetes.io/name: forgejo
     app.kubernetes.io/instance: forgejo
     version: 7.0.5
     app.kubernetes.io/managed-by: Helm
   annotations:
-    external-dns.alpha.kubernetes.io/hostname: forgejo-ssh.18b.haus
-    io.cilium/lb-ipam-ips: 192.168.40.245
+    external-dns.alpha.kubernetes.io/hostname: git-ssh.18b.haus
+    io.cilium/lb-ipam-ips: 192.168.40.249
 spec:
   type: LoadBalancer
   ports:
   - name: ssh
     port: 22
     targetPort: 2222
--- HelmRelease: default/forgejo Ingress: default/forgejo

+++ HelmRelease: default/forgejo Ingress: default/forgejo

@@ -21,16 +21,16 @@

         return 404;
       }
 spec:
   ingressClassName: internal
   tls:
   - hosts:
-    - forgejo.18b.haus
+    - git.18b.haus
     secretName: null
   rules:
-  - host: forgejo.18b.haus
+  - host: git.18b.haus
     http:
       paths:
       - path: /
         backend:
           serviceName: forgejo-http
           servicePort: 3000