Skip to content

Commit

Permalink
add kube-prometheis-stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Philipsen authored and Ronald Philipsen committed Feb 1, 2025
1 parent 0dfca03 commit a944532
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,17 @@ spec:
key: ALERTMANAGER_HEARTBEAT_URL
- name: email
emailConfigs:
- from: 'alertmanager@${SECRET_DOMAIN}'
# Whether to notify about resolved alerts.
- sendResolved: true
to: 'alerts@${SECRET_DOMAIN}'
from: 'alertmanager@${SECRET_DOMAIN}'
hello: k8s@${SECRET_DOMAIN}
# The smarthost and SMTP sender used for mail notifications.
smarthost: ${ALERTMANAGER_SMTP_HOST}
authUsername: ${ALERTMANAGER_SMTP_USERNAME}
authPassword:
key: *secret
name: ALERTMANAGER_SMTP_PASSWORD
text: >-
[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}]
{{ .CommonLabels.alertname }}
Expand All @@ -74,11 +83,3 @@ spec:
{{- end }}
{{- end }}
sendResolved: true
# The smarthost and SMTP sender used for mail notifications.
hello: k8s@${SECRET_DOMAIN}
smarthost: ${ALERTMANAGER_SMTP_HOST}
authUsername: ${ALERTMANAGER_SMTP_USERNAME}
authPassword:
key: *secret
name: ALERTMANAGER_SMTP_PASSWORD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ spec:
data:
ALERTMANAGER_HEARTBEAT_URL: "{{ .ALERTMANAGER_HEARTBEAT_URL }}"
ALERTMANAGER_SMTP_PASSWORD: "{{ .ALERTMANAGER_SMTP_PASSWORD }}"
PUSHOVER_USER_KEY: "{{ .PUSHOVER_USER_KEY }}"
dataFrom:
- extract:
key: alertmanager
9 changes: 6 additions & 3 deletions kubernetes/flux/meta/settings/cluster-secrets.sops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ stringData:
CLUSTER_SVC_V6_PREFIX: ENC[AES256_GCM,data:qVmaFX2V2/TF1z9gLij+ZEzblucO,iv:T8UYxEN8r1A7nSqalS7Mxw0Dn8saDKckYFbHP+V38JM=,tag:RJswikeCI4a0xZv4i7Yegg==,type:str]
CLUSTER_LBA_V6_CIDR: ENC[AES256_GCM,data:BUDk53jJv3VYKiMPaHwh69omm7QCB8zmksNy,iv:rTkABwkYE84F36OrY1AsUdx1/3EryaCo8in91Vqwuxk=,tag:Ot/288eN/+u4T9Wg8otezA==,type:str]
CLUSTER_NODE_V6_CIDR: ENC[AES256_GCM,data:9EtUqN4vA5pzYGPigwqhVc8oMw==,iv:rpnJtQ7E1sW/D7IYxOYtA7TU+cl+tMyAe3oEZ+Kgqks=,tag:n0muTnj1K0dgJgQjcUiuDQ==,type:str]
#ENC[AES256_GCM,data:brFBypll5QOb7yyqt/gHs5rH75+FXbW753m8,iv:wC1nkZUN3nBS+7ZCvGi1K8aYWXG7E0Ywr+H/vZORzAM=,tag:ZN3sr+XSdxDz9zPO+vRZFw==,type:comment]
ALERTMANAGER_SMTP_USERNAME: ENC[AES256_GCM,data:33AiYpDOJ41hHhTgfLsGUglWVk8KwVw=,iv:MBDtmvhgo4urPMHJDRIgPmS5avRg8//5N+YhWeECqtw=,tag:aP6ht3OlN902f9877OaAng==,type:str]
ALERTMANAGER_SMTP_HOST: ENC[AES256_GCM,data:O8rXlZjoe9xwRqXd0Iy7eNS4,iv:oJHPANSEbV2LYf0+z8JQS4kK25gZoOS66STciO4yneI=,tag:7svebzCwZU5JbhTLgrFtiw==,type:str]
sops:
kms: []
gcp_kms: []
Expand All @@ -29,9 +32,9 @@ sops:
dEJCQ0VzcEVlWmdDYUs5Nm9jYTVXckkKr8OGj284W6dhf5uUFtpwPX1eaz0dYWx2
uy6dvYEY+SSVSGaojydt8IFU80vhaQIslI2A7hIjNmGY6s5Pl2Zpnw==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2025-01-18T21:51:24Z"
mac: ENC[AES256_GCM,data:rmU+URrHaloXPKthGXfStu4T2/2XhL7NYrwK5ZjUkFmFGNCHlihEjpOW+gowPPA2Dhb7I6wVCAT9Ix+2ir4EYi+xx3Q3Zkbc4dh+QzvbgXnFuWQcTgb6l8ePpsNDVVWDz6fRyI/1m+bky67vhqRXmXjJglxnD+ZIEIBOIdI2bsA=,iv:sklvnbvwADKvrr2LlLCtmCLFOPYqSVwFkzsv3xV0mHE=,tag:9B3AxDUa1CMenwatD77pVA==,type:str]
lastmodified: "2025-02-01T13:32:02Z"
mac: ENC[AES256_GCM,data:ww6bzEoYf0i2ChcHXsQzv1j4ijpoO5O/3o5r1urAckvH9UnO5Dg2mDd8wv2ZZSbueibBpgJAV/V+FpUPIyAqaN6m5aLsGHSz/usfhz62fCownI9zv/gnfCbvGNTa19EL5Cnniv6gc5dtUZOlkyMOfmO0Ps++fsgeG1TyF3q+gZM=,iv:eRcpVyQUzr1YeIpurtqklMKv3y3F2Vn+oiiTIddfKWk=,tag:6+cuyd7fLGBGBb4jNqoENg==,type:str]
pgp: []
encrypted_regex: ^(data|stringData)$
mac_only_encrypted: true
version: 3.9.3
version: 3.9.4

0 comments on commit a944532

Please sign in to comment.