Comments (3)
I managed to solve the problem by setting the created storageClass as default:
annotations:
storageclass.kubernetes.io/is-default-class: "true"
from helm-charts.
Hello @Angel0r ,
Have you tried specified the storageClassName
under their StorageSpec
, like for vmstorage
kind: VMCluster
metadata:
name: example-vmcluster
spec:
vmstorage:
replicaCount: 2
storage:
volumeClaimTemplate:
spec:
storageClassName: prod-sc
from helm-charts.
@Angel0r, It's possible to set the storageClassName via the helm values. Just make sure you follow the resource spec.
Here's a snippet where I've specified storageClassName in my helm values for VMSingle:
{
...
"vmsingle": {
"annotations": {},
"enabled": true,
"spec": {
"image": {
"tag": "v1.101.0"
},
"retentionPeriod": "30",
"replicaCount": 1,
"extraArgs": {},
"storage": {
"storageClassName": "efs-sc",
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "20Gi"
}
}
}
},
...
}
helm successfully templates the storageClassName into the VMSingle spec:
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMSingle
metadata:
labels:
app.kubernetes.io/instance: vmo-helm-c8ce5482
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: victoria-metrics-k8s-stack
app.kubernetes.io/version: v1.101.0
helm.sh/chart: victoria-metrics-k8s-stack-0.23.2
name: vmo
namespace: vm
spec:
extraArgs:
vmalert.proxyURL: http://vmalert-vmo.vm.svc:8080
image:
tag: v1.101.0
replicaCount: 1
retentionPeriod: "30"
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
storageClassName: "efs-sc"
from helm-charts.
Related Issues (20)
- chart "vmagent" version "v0.10.4" not found in https://victoriametrics.github.io/helm-charts/ repository HOT 1
- helm install failed when serviceMonitor is enabled HOT 1
- Allow adding additional labels to alert rules in victoria-metrics-k8s-stack helm chart
- Latest v0.22 victoria-metrics-k8s-stack is unable to uninstall HOT 4
- How to properly setup remoteWrite credentials in vmagent HOT 1
- Deprecated etcd alert "etcdHighNumberOfFailedGRPCRequests" HOT 1
- Errors after upgrading: no matches for kind "VMScrapeConfig" HOT 1
- Use environment variables under inlineScrapeConfig HOT 6
- [victoria-metrics-agent] No targets from VMServiceScrape HOT 2
- Should prometheus operator CRDs be added as a subchart to stack deployment HOT 2
- Custom Port name are failing for VMSelect and VMInsert HOT 1
- deprecated image used in Victoria-metrics-operator
- Back-off restarting failed container config-reloader on ipv6-only cluster HOT 5
- spec.groups[0].rules: Required value when setting defaultRules.disabled.KubeSchedulerDown=false
- InfoInhibitor always firing
- Failing the existingClaim for multiple replica of VMStorage HOT 1
- Add changes to artifacthub with annotation
- K8S VM Stack: Resources are not deleted after deleting the namespace. HOT 3
- volumeClaimTemplates does not have the full spec, causing Out of Sync in ArgoCD HOT 2
- Setting Alertmanager's config-reloader container resources in victoria-metrics-k8s-stack values HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.