Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
controllers: properly check annotations at sts claim template
previously each pvc created by sts must be annotated with operator.victoriametrics.com/pvc-allow-volume-expansion now, it's no longer needed, operator performs a check on sts claim definition itself it allows to use it for PVC autoscaler or simmilar tool #867
- Loading branch information
Showing
2 changed files
with
69 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
apiVersion: operator.victoriametrics.com/v1beta1 | ||
kind: VMCluster | ||
metadata: | ||
name: example-vmcluster-persistent | ||
spec: | ||
retentionPeriod: "4" | ||
replicationFactor: 2 | ||
vmstorage: | ||
replicaCount: 2 | ||
storageDataPath: "/vm-data" | ||
storage: | ||
volumeClaimTemplate: | ||
metadata: | ||
annotations: | ||
operator.victoriametrics.com/pvc-allow-volume-expansion: "false" | ||
spec: | ||
storageClassName: sc-immutable | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
vmselect: | ||
replicaCount: 2 | ||
cacheMountPath: "/select-cache" | ||
storage: | ||
volumeClaimTemplate: | ||
metadata: | ||
annotations: | ||
operator.victoriametrics.com/pvc-allow-volume-expansion: "false" | ||
spec: | ||
storageClassName: sc-mutable | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
vminsert: | ||
replicaCount: 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters