122 lines
3 KiB
YAML
122 lines
3 KiB
YAML
|
|
apiVersion: operator.victoriametrics.com/v1beta1
|
||
|
|
kind: VMCluster
|
||
|
|
metadata:
|
||
|
|
name: main
|
||
|
|
namespace: victoriametrics
|
||
|
|
spec:
|
||
|
|
retentionPeriod: "90d"
|
||
|
|
replicationFactor: 2
|
||
|
|
useStrictSecurity: true
|
||
|
|
vmstorage:
|
||
|
|
image:
|
||
|
|
tag: v1.155.0-cluster
|
||
|
|
replicaCount: 2
|
||
|
|
extraArgs:
|
||
|
|
dedup.minScrapeInterval: 30s
|
||
|
|
podDisruptionBudget:
|
||
|
|
minAvailable: 1
|
||
|
|
affinity:
|
||
|
|
podAntiAffinity:
|
||
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||
|
|
- labelSelector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
app.kubernetes.io/name: vmstorage
|
||
|
|
topologyKey: kubernetes.io/hostname
|
||
|
|
storageDataPath: /vm-data
|
||
|
|
storage:
|
||
|
|
volumeClaimTemplate:
|
||
|
|
spec:
|
||
|
|
storageClassName: openebs-hostpath-hdd
|
||
|
|
accessModes:
|
||
|
|
- ReadWriteOnce
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
storage: 50Gi
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
cpu: 250m
|
||
|
|
memory: 1Gi
|
||
|
|
limits:
|
||
|
|
memory: 4Gi
|
||
|
|
vmselect:
|
||
|
|
image:
|
||
|
|
tag: v1.155.0-cluster
|
||
|
|
replicaCount: 2
|
||
|
|
extraArgs:
|
||
|
|
dedup.minScrapeInterval: 30s
|
||
|
|
podDisruptionBudget:
|
||
|
|
minAvailable: 1
|
||
|
|
affinity:
|
||
|
|
podAntiAffinity:
|
||
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||
|
|
- labelSelector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
app.kubernetes.io/name: vmselect
|
||
|
|
topologyKey: kubernetes.io/hostname
|
||
|
|
cacheMountPath: /select-cache
|
||
|
|
storage:
|
||
|
|
emptyDir:
|
||
|
|
sizeLimit: 5Gi
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
cpu: 100m
|
||
|
|
memory: 256Mi
|
||
|
|
limits:
|
||
|
|
memory: 1Gi
|
||
|
|
vminsert:
|
||
|
|
image:
|
||
|
|
tag: v1.155.0-cluster
|
||
|
|
replicaCount: 2
|
||
|
|
podDisruptionBudget:
|
||
|
|
minAvailable: 1
|
||
|
|
affinity:
|
||
|
|
podAntiAffinity:
|
||
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||
|
|
- labelSelector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
app.kubernetes.io/name: vminsert
|
||
|
|
topologyKey: kubernetes.io/hostname
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
cpu: 100m
|
||
|
|
memory: 256Mi
|
||
|
|
limits:
|
||
|
|
memory: 1Gi
|
||
|
|
---
|
||
|
|
apiVersion: operator.victoriametrics.com/v1beta1
|
||
|
|
kind: VMAgent
|
||
|
|
metadata:
|
||
|
|
name: main
|
||
|
|
namespace: victoriametrics
|
||
|
|
spec:
|
||
|
|
image:
|
||
|
|
tag: v1.155.0
|
||
|
|
replicaCount: 2
|
||
|
|
externalLabelName: prometheus
|
||
|
|
podDisruptionBudget:
|
||
|
|
minAvailable: 1
|
||
|
|
affinity:
|
||
|
|
podAntiAffinity:
|
||
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||
|
|
- labelSelector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
app.kubernetes.io/name: vmagent
|
||
|
|
topologyKey: kubernetes.io/hostname
|
||
|
|
useStrictSecurity: true
|
||
|
|
selectAllByDefault: true
|
||
|
|
scrapeInterval: 30s
|
||
|
|
scrapeTimeout: 10s
|
||
|
|
externalLabels:
|
||
|
|
cluster: quorate
|
||
|
|
remoteWrite:
|
||
|
|
- url: http://vminsert-main.victoriametrics.svc.cluster.local:8480/insert/0/prometheus/api/v1/write
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
cpu: 100m
|
||
|
|
memory: 256Mi
|
||
|
|
limits:
|
||
|
|
memory: 1Gi
|