Lets say we have 2 zones: zone-a and zone-b. Separate cluster must be deploy to the both zones with commands:
helm upgrade -i zone-a vm/victoria-metrics-cluster -f zone.yaml
Lets say we have 2 zones: zone-a and zone-b. Separate cluster must be deploy to the both zones with commands:
helm upgrade -i zone-a vm/victoria-metrics-cluster -f zone.yaml
In education purpose, I'll use single node version of VictoriaMetrics.
apiVersion: operator.victoriametrics.com/v1beta1 | |
kind: VMAgent | |
metadata: | |
name: main | |
spec: | |
selectAllByDefault: true | |
replicaCount: 1 | |
statefulMode: true | |
shardCount: 2 | |
extraArgs: |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: vlinsert | |
spec: | |
type: ClusterIP | |
ports: | |
- name: http | |
protocol: TCP | |
port: 9428 |