Skip to content

Commit

Permalink
feat: move alerts into namespace.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Mar 23, 2024
1 parent 5b08a0f commit 6fa75ac
Show file tree
Hide file tree
Showing 39 changed files with 398 additions and 411 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ./notifications.yaml
# Flux-Kustomizations
- ./actions-runner-controller/ks.yaml
30 changes: 30 additions & 0 deletions kubernetes/main/apps/actions-runner-system/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,33 @@ metadata:
annotations:
kustomize.toolkit.fluxcd.io/prune: disabled
volsync.backube/privileged-movers: "true"
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/notification.toolkit.fluxcd.io/provider_v1beta3.json
apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Provider
metadata:
name: alert-manager
namespace: actions-runner-system
spec:
type: alertmanager
address: http://alertmanager-operated.observability.svc.cluster.local:9093/api/v2/alerts/
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/notification.toolkit.fluxcd.io/alert_v1beta3.json
apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Alert
metadata:
name: alert-manager
namespace: actions-runner-system
spec:
providerRef:
name: alert-manager
eventSeverity: error
eventSources:
- kind: HelmRelease
name: "*"
exclusionList:
- "error.*lookup github\\.com"
- "error.*lookup raw\\.githubusercontent\\.com"
- "dial.*tcp.*timeout"
- "waiting.*socket"
suspend: false
30 changes: 0 additions & 30 deletions kubernetes/main/apps/actions-runner-system/notifications.yaml

This file was deleted.

1 change: 0 additions & 1 deletion kubernetes/main/apps/cert-manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ./notifications.yaml
# Flux-Kustomizations
- ./cert-manager/ks.yaml
30 changes: 30 additions & 0 deletions kubernetes/main/apps/cert-manager/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,33 @@ metadata:
annotations:
kustomize.toolkit.fluxcd.io/prune: disabled
volsync.backube/privileged-movers: "true"
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/notification.toolkit.fluxcd.io/provider_v1beta3.json
apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Provider
metadata:
name: alert-manager
namespace: cert-manager
spec:
type: alertmanager
address: http://alertmanager-operated.observability.svc.cluster.local:9093/api/v2/alerts/
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/notification.toolkit.fluxcd.io/alert_v1beta3.json
apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Alert
metadata:
name: alert-manager
namespace: cert-manager
spec:
providerRef:
name: alert-manager
eventSeverity: error
eventSources:
- kind: HelmRelease
name: "*"
exclusionList:
- "error.*lookup github\\.com"
- "error.*lookup raw\\.githubusercontent\\.com"
- "dial.*tcp.*timeout"
- "waiting.*socket"
suspend: false
30 changes: 0 additions & 30 deletions kubernetes/main/apps/cert-manager/notifications.yaml

This file was deleted.

1 change: 0 additions & 1 deletion kubernetes/main/apps/database/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ./notifications.yaml
# Flux-Kustomizations
- ./cloudnative-pg/ks.yaml
- ./redis/ks.yaml
30 changes: 30 additions & 0 deletions kubernetes/main/apps/database/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,33 @@ metadata:
annotations:
kustomize.toolkit.fluxcd.io/prune: disabled
volsync.backube/privileged-movers: "true"
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/notification.toolkit.fluxcd.io/provider_v1beta3.json
apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Provider
metadata:
name: alert-manager
namespace: database
spec:
type: alertmanager
address: http://alertmanager-operated.observability.svc.cluster.local:9093/api/v2/alerts/
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/notification.toolkit.fluxcd.io/alert_v1beta3.json
apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Alert
metadata:
name: alert-manager
namespace: database
spec:
providerRef:
name: alert-manager
eventSeverity: error
eventSources:
- kind: HelmRelease
name: "*"
exclusionList:
- "error.*lookup github\\.com"
- "error.*lookup raw\\.githubusercontent\\.com"
- "dial.*tcp.*timeout"
- "waiting.*socket"
suspend: false
30 changes: 0 additions & 30 deletions kubernetes/main/apps/database/notifications.yaml

This file was deleted.

1 change: 0 additions & 1 deletion kubernetes/main/apps/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ./notifications.yaml
# Flux-Kustomizations
- ./atuin/ks.yaml
- ./authelia/ks.yaml
Expand Down
30 changes: 30 additions & 0 deletions kubernetes/main/apps/default/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,33 @@ metadata:
annotations:
kustomize.toolkit.fluxcd.io/prune: disabled
volsync.backube/privileged-movers: "true"
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/notification.toolkit.fluxcd.io/provider_v1beta3.json
apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Provider
metadata:
name: alert-manager
namespace: default
spec:
type: alertmanager
address: http://alertmanager-operated.observability.svc.cluster.local:9093/api/v2/alerts/
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/notification.toolkit.fluxcd.io/alert_v1beta3.json
apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Alert
metadata:
name: alert-manager
namespace: default
spec:
providerRef:
name: alert-manager
eventSeverity: error
eventSources:
- kind: HelmRelease
name: "*"
exclusionList:
- "error.*lookup github\\.com"
- "error.*lookup raw\\.githubusercontent\\.com"
- "dial.*tcp.*timeout"
- "waiting.*socket"
suspend: false
30 changes: 0 additions & 30 deletions kubernetes/main/apps/default/notifications.yaml

This file was deleted.

1 change: 0 additions & 1 deletion kubernetes/main/apps/external-secrets/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ./notifications.yaml
# Flux-Kustomizations
- ./external-secrets/ks.yaml
30 changes: 30 additions & 0 deletions kubernetes/main/apps/external-secrets/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,33 @@ metadata:
name: external-secrets
labels:
kustomize.toolkit.fluxcd.io/prune: disabled
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/notification.toolkit.fluxcd.io/provider_v1beta3.json
apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Provider
metadata:
name: alert-manager
namespace: external-secrets
spec:
type: alertmanager
address: http://alertmanager-operated.observability.svc.cluster.local:9093/api/v2/alerts/
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/notification.toolkit.fluxcd.io/alert_v1beta3.json
apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Alert
metadata:
name: alert-manager
namespace: external-secrets
spec:
providerRef:
name: alert-manager
eventSeverity: error
eventSources:
- kind: HelmRelease
name: "*"
exclusionList:
- "error.*lookup github\\.com"
- "error.*lookup raw\\.githubusercontent\\.com"
- "dial.*tcp.*timeout"
- "waiting.*socket"
suspend: false
30 changes: 0 additions & 30 deletions kubernetes/main/apps/external-secrets/notifications.yaml

This file was deleted.

1 change: 0 additions & 1 deletion kubernetes/main/apps/flux-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ./notifications.yaml
# Flux-Kustomizations
- ./addons/ks.yaml
Loading

0 comments on commit 6fa75ac

Please sign in to comment.