Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move templates to shared folder #8343

Merged
merged 5 commits into from
Nov 12, 2024
Merged

feat: move templates to shared folder #8343

merged 5 commits into from
Nov 12, 2024

Conversation

onedr0p
Copy link
Owner

@onedr0p onedr0p commented Nov 12, 2024

No description provided.

Signed-off-by: Devin Buhl <devin@buhl.casa>
@bot-ross bot-ross bot added area/kubernetes Changes made in the kubernetes directory cluster/main area/taskfile labels Nov 12, 2024
Signed-off-by: Devin Buhl <devin@buhl.casa>
Signed-off-by: Devin Buhl <devin@buhl.casa>
Signed-off-by: Devin Buhl <devin@buhl.casa>
@bot-ross
Copy link
Contributor

bot-ross bot commented Nov 12, 2024

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

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

@@ -18,12 +18,15 @@

   dependsOn:
   - name: cloudnative-pg-cluster
   - name: external-secrets-stores
   interval: 30m
   path: ./kubernetes/main/apps/observability/gatus/app
   postBuild:
+    substitute:
+      APP: gatus
+      GATUS_SUBDOMAIN: status
     substituteFrom:
     - kind: ConfigMap
       name: cluster-settings
       optional: true
     - kind: Secret
       name: cluster-secrets
--- kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/grafana

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

@@ -17,12 +17,14 @@

       name: sops-age
   dependsOn:
   - name: external-secrets-stores
   interval: 30m
   path: ./kubernetes/main/apps/observability/grafana/app
   postBuild:
+    substitute:
+      APP: grafana
     substituteFrom:
     - kind: ConfigMap
       name: cluster-settings
       optional: true
     - kind: Secret
       name: cluster-secrets
--- kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/kube-prometheus-stack

+++ kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/kube-prometheus-stack

@@ -17,12 +17,15 @@

       name: sops-age
   dependsOn:
   - name: external-secrets-stores
   interval: 30m
   path: ./kubernetes/main/apps/observability/kube-prometheus-stack/app
   postBuild:
+    substitute:
+      APP: kube-prometheus-stack
+      GATUS_SUBDOMAIN: prometheus
     substituteFrom:
     - kind: ConfigMap
       name: cluster-settings
       optional: true
     - kind: Secret
       name: cluster-secrets
--- kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/rook-ceph-cluster

+++ kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/rook-ceph-cluster

@@ -17,12 +17,15 @@

       name: sops-age
   dependsOn:
   - name: external-secrets-stores
   interval: 30m
   path: ./kubernetes/main/apps/rook-ceph/rook-ceph/cluster
   postBuild:
+    substitute:
+      APP: rook-ceph-cluster
+      GATUS_SUBDOMAIN: rook
     substituteFrom:
     - kind: ConfigMap
       name: cluster-settings
       optional: true
     - kind: Secret
       name: cluster-secrets
--- kubernetes/main/apps/rook-ceph/rook-ceph/cluster Kustomization: flux-system/rook-ceph-cluster ConfigMap: rook-ceph/rook-ceph-cluster-gatus-ep

+++ kubernetes/main/apps/rook-ceph/rook-ceph/cluster Kustomization: flux-system/rook-ceph-cluster ConfigMap: rook-ceph/rook-ceph-cluster-gatus-ep

@@ -0,0 +1,25 @@

+---
+apiVersion: v1
+data:
+  config.yaml: |
+    endpoints:
+      - name: "rook-ceph-cluster"
+        group: external
+        url: "https://rook.devbu.io/"
+        interval: 1m
+        client:
+          dns-resolver: tcp://1.1.1.1:53
+        conditions:
+          - "[STATUS] == 200"
+        alerts:
+          - type: pushover
+kind: ConfigMap
+metadata:
+  labels:
+    app.kubernetes.io/name: rook-ceph-cluster
+    gatus.io/enabled: 'true'
+    kustomize.toolkit.fluxcd.io/name: rook-ceph-cluster
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: rook-ceph-cluster-gatus-ep
+  namespace: rook-ceph
+
--- kubernetes/main/apps/observability/kube-prometheus-stack/app Kustomization: flux-system/kube-prometheus-stack ConfigMap: observability/kube-prometheus-stack-gatus-ep

+++ kubernetes/main/apps/observability/kube-prometheus-stack/app Kustomization: flux-system/kube-prometheus-stack ConfigMap: observability/kube-prometheus-stack-gatus-ep

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

+---
+apiVersion: v1
+data:
+  config.yaml: |
+    endpoints:
+      - name: "kube-prometheus-stack"
+        group: guarded
+        url: 1.1.1.1
+        interval: 1m
+        ui:
+          hide-hostname: true
+          hide-url: true
+        dns:
+          query-name: "prometheus.devbu.io"
+          query-type: A
+        conditions:
+          - "len([BODY]) == 0"
+        alerts:
+          - type: pushover
+kind: ConfigMap
+metadata:
+  labels:
+    app.kubernetes.io/name: kube-prometheus-stack
+    gatus.io/enabled: 'true'
+    kustomize.toolkit.fluxcd.io/name: kube-prometheus-stack
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: kube-prometheus-stack-gatus-ep
+  namespace: observability
+
--- kubernetes/main/apps/observability/grafana/app Kustomization: flux-system/grafana ConfigMap: observability/grafana-gatus-ep

+++ kubernetes/main/apps/observability/grafana/app Kustomization: flux-system/grafana ConfigMap: observability/grafana-gatus-ep

@@ -0,0 +1,25 @@

+---
+apiVersion: v1
+data:
+  config.yaml: |
+    endpoints:
+      - name: "grafana"
+        group: external
+        url: "https://grafana.devbu.io/"
+        interval: 1m
+        client:
+          dns-resolver: tcp://1.1.1.1:53
+        conditions:
+          - "[STATUS] == 200"
+        alerts:
+          - type: pushover
+kind: ConfigMap
+metadata:
+  labels:
+    app.kubernetes.io/name: grafana
+    gatus.io/enabled: 'true'
+    kustomize.toolkit.fluxcd.io/name: grafana
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: grafana-gatus-ep
+  namespace: observability
+
--- kubernetes/main/apps/observability/gatus/app Kustomization: flux-system/gatus ConfigMap: observability/gatus-configmap

+++ kubernetes/main/apps/observability/gatus/app Kustomization: flux-system/gatus ConfigMap: observability/gatus-configmap

@@ -27,22 +27,12 @@

           success-threshold: 3
     connectivity:
       checker:
         target: 1.1.1.1:53
         interval: 1m
     endpoints:
-      - name: status
-        group: external
-        url: https://status.devbu.io
-        interval: 1m
-        client:
-          dns-resolver: tcp://1.1.1.1:53
-        conditions:
-          - "[STATUS] == 200"
-        alerts:
-          - type: pushover
       - name: flux-webhook
         group: external
         url: https://flux-webhook.devbu.io
         interval: 1m
         client:
           dns-resolver: tcp://1.1.1.1:53
--- kubernetes/main/apps/observability/gatus/app Kustomization: flux-system/gatus ConfigMap: observability/gatus-gatus-ep

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

@@ -0,0 +1,25 @@

+---
+apiVersion: v1
+data:
+  config.yaml: |
+    endpoints:
+      - name: "gatus"
+        group: external
+        url: "https://status.devbu.io/"
+        interval: 1m
+        client:
+          dns-resolver: tcp://1.1.1.1:53
+        conditions:
+          - "[STATUS] == 200"
+        alerts:
+          - type: pushover
+kind: ConfigMap
+metadata:
+  labels:
+    app.kubernetes.io/name: gatus
+    gatus.io/enabled: 'true'
+    kustomize.toolkit.fluxcd.io/name: gatus
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: gatus-gatus-ep
+  namespace: observability
+

Signed-off-by: Devin Buhl <devin@buhl.casa>
@onedr0p onedr0p merged commit 7e7bccc into main Nov 12, 2024
9 checks passed
@onedr0p onedr0p deleted the templates-to-shared branch November 12, 2024 19:02
onedr0p added a commit that referenced this pull request Nov 12, 2024
@onedr0p onedr0p restored the templates-to-shared branch November 12, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes Changes made in the kubernetes directory area/taskfile cluster/main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant