-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PVC autoscaling. #867
Comments
Hello, I think, it's possible to use PVC autoscaling with operator. Operator checks the actual size of pvc and compares it with claimTemplate defined at statefulset. It it's bigger, operator logs and error and do nothing with this pvc. For vmsingle, it's possible to use external pvc and operator will ignore it's size. I think, we could add special annotation for claim template, that we'll delegate PVC resize to the external controller such as volume-auto-scaler. cc @Haleygo |
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
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
Since v0.42.0 release, it's possible to add special annotation 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 |
Is it feasible to concurrently utilize operators such as https://github.com/DevOps-Nirvana/Kubernetes-Volume-Autoscaler alongside the VM operator?
My understanding is that the Kubernetes volume autoscaler will adjust PVC resources to scale up PV, but I presume the VM operator may revert these changes.
The text was updated successfully, but these errors were encountered: