ci / lint-prettier (push) Skipped
ci / lint-ruff (push) Skipped
ci / lint-yaml (push) Skipped
ci / lint-dockerfiles (push) Skipped
ci / validate (push) Skipped
renovate-ci / validate-renovate (push) Skipped
renovate-ci / validate-renovate (pull_request) Skipped
ci / lint-compose (pull_request) Successful in 12s
ci / lint-actionlint (pull_request) Successful in 6s
ci / lint-shellcheck (pull_request) Successful in 13s
ci / lint-prettier (pull_request) Successful in 21s
ci / lint-ruff (pull_request) Successful in 7s
ci / lint-yaml (pull_request) Successful in 12s
ci / lint-dockerfiles (pull_request) Successful in 7s
ci / validate (pull_request) Successful in 7s
ci / build (pull_request) Skipped
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: vmalert
|
|
namespace: prometheus
|
|
spec:
|
|
selector:
|
|
app: vmalert
|
|
ports:
|
|
- port: 8880
|
|
targetPort: 8880
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: vmalert-deployment
|
|
namespace: prometheus
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: vmalert
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: vmalert
|
|
spec:
|
|
containers:
|
|
- name: vmalert
|
|
image: victoriametrics/vmalert:v1.153.0
|
|
args:
|
|
- -datasource.url=http://victoria-metrics.prometheus.svc.cluster.local:8428
|
|
- -remoteWrite.url=http://victoria-metrics.prometheus.svc.cluster.local:8428
|
|
- -notifier.url=http://prometheus-stack-kube-prom-alertmanager.prometheus.svc.cluster.local:9093
|
|
- -rule=/etc/vm/rules/*.yaml
|
|
- -evaluationInterval=60s
|
|
- -httpListenAddr=:8880
|
|
ports:
|
|
- containerPort: 8880
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /metrics
|
|
port: 8880
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 10
|
|
failureThreshold: 6
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /metrics
|
|
port: 8880
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 30
|
|
failureThreshold: 3
|
|
volumeMounts:
|
|
- name: rules
|
|
mountPath: /etc/vm/rules
|
|
readOnly: true
|
|
resources:
|
|
requests:
|
|
cpu: "50m"
|
|
memory: "64Mi"
|
|
limits:
|
|
cpu: "200m"
|
|
memory: "256Mi"
|
|
volumes:
|
|
- name: rules
|
|
configMap:
|
|
name: prometheus-prometheus-stack-kube-prom-prometheus-rulefiles-0
|