Add Flux bootstrap and Gotify notifications
- Added SOPS-encrypted Gotify API token - Created Gotify notification provider for Flux alerts - Added bootstrap Kustomization for notifications - Updated .sops.yaml to handle bootstrap directory - Configured alerts for all GitRepository, Kustomization, and HelmRelease events
This commit is contained in:
29
bootstrap/notification-provider.yaml
Normal file
29
bootstrap/notification-provider.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta3
|
||||
kind: Provider
|
||||
metadata:
|
||||
name: gotify
|
||||
namespace: flux-system
|
||||
spec:
|
||||
type: gotify
|
||||
address: http://gotify.gotify.svc.cluster.local
|
||||
secretRef:
|
||||
name: gotify-token
|
||||
---
|
||||
apiVersion: notification.toolkit.fluxcd.io/v1beta3
|
||||
kind: Alert
|
||||
metadata:
|
||||
name: homelab-alerts
|
||||
namespace: flux-system
|
||||
spec:
|
||||
providerRef:
|
||||
name: gotify
|
||||
eventSeverity: info
|
||||
eventSources:
|
||||
- kind: GitRepository
|
||||
name: '*'
|
||||
- kind: Kustomization
|
||||
name: '*'
|
||||
- kind: HelmRelease
|
||||
name: '*'
|
||||
- kind: HelmRepository
|
||||
name: '*'
|
||||
Reference in New Issue
Block a user