Open whc9527 opened 1 week ago
Hello, thanks for reporting. Looks like bug to me.
Issue will be fixed at the next release. But provided configuration example is not valid and operator will reject it with validation error.
Proper configuration must have defined volumes
and volumeMounts
for defined storageDataPath
:
# Configures vmsingle params
vmsingle:
enabled: true
spec:
retentionPeriod: "1h"
replicaCount: 1
nodeSelector:
business_type: prometheus
storageDataPath: "/vmdata"
volumes:
- name: storage
# replace with actual volume source
emptyDir: {}
volumeMounts:
- name: storage
mountPath: "/vmdata"
install command:
helm upgrade --install vmks vm/victoria-metrics-k8s-stack -f values.yaml -n monitoring
values.yaml
Combined with the code below operator, vmsingle should not have PVC dependencies after installation
https://github.com/VictoriaMetrics/operator/blob/v0.49.0/internal/controller/operator/factory/vmsingle/vmsingle.go#L72
But after the installation, it was found that vmsingle has always been PVC dependent, which is why?
get the pod yaml of vmsingle
k -n monitoring get pod vmsingle-vmks-victoria-metrics-k8s-stack-6584f64f97-qp6qs -o yaml