-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Devin Buhl <devin@buhl.casa>
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>
--- 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>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.