Skip to content

Commit

Permalink
vmsingle: release 0.14.3, fixes #2037
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Mar 3, 2025
1 parent 44c62d7 commit 6214876
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 43 deletions.
2 changes: 1 addition & 1 deletion charts/victoria-metrics-single/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Next release

- TODO
- Set default mode back to statefulSet. See [this issue](https://github.com/VictoriaMetrics/helm-charts/issues/2037).

## 0.14.2

Expand Down
2 changes: 1 addition & 1 deletion charts/victoria-metrics-single/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
type: application
description: Victoria Metrics Single version - high-performance, cost-effective and scalable TSDB, long-term remote storage for Prometheus
name: victoria-metrics-single
version: 0.14.2
version: 0.14.3
appVersion: v1.112.0
sources:
- https://github.com/VictoriaMetrics/helm-charts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
deployment should match snapshot:
1: |
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
labels:
app: server
Expand All @@ -13,14 +13,14 @@ deployment should match snapshot:
name: RELEASE-NAME-victoria-metrics-single-server
namespace: NAMESPACE
spec:
podManagementPolicy: OrderedReady
replicas: 1
selector:
matchLabels:
app: server
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: victoria-metrics-single
strategy:
type: Recreate
serviceName: RELEASE-NAME-victoria-metrics-single-server
template:
metadata:
labels:
Expand Down Expand Up @@ -69,14 +69,23 @@ deployment should match snapshot:
securityContext: {}
serviceAccountName: RELEASE-NAME-victoria-metrics-single-server
terminationGracePeriodSeconds: 60
volumes:
- name: server-volume
persistentVolumeClaim:
claimName: RELEASE-NAME-victoria-metrics-single-server
volumes: null
updateStrategy: {}
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: server-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 16Gi
deployment with volume should match snapshot:
1: |
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
labels:
app: server
Expand All @@ -88,14 +97,14 @@ deployment with volume should match snapshot:
name: RELEASE-NAME-victoria-metrics-single-server
namespace: NAMESPACE
spec:
podManagementPolicy: OrderedReady
replicas: 1
selector:
matchLabels:
app: server
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: victoria-metrics-single
strategy:
type: Recreate
serviceName: RELEASE-NAME-victoria-metrics-single-server
template:
metadata:
labels:
Expand Down Expand Up @@ -144,14 +153,23 @@ deployment with volume should match snapshot:
securityContext: {}
serviceAccountName: RELEASE-NAME-victoria-metrics-single-server
terminationGracePeriodSeconds: 60
volumes:
- name: server-volume
persistentVolumeClaim:
claimName: RELEASE-NAME-victoria-metrics-single-server
statefulset should match snapshot:
volumes: null
updateStrategy: {}
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: server-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 16Gi
statefulSet should match snapshot:
1: |
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
labels:
app: server
Expand All @@ -163,14 +181,14 @@ statefulset should match snapshot:
name: RELEASE-NAME-victoria-metrics-single-server
namespace: NAMESPACE
spec:
podManagementPolicy: OrderedReady
replicas: 1
selector:
matchLabels:
app: server
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: victoria-metrics-single
strategy:
type: Recreate
serviceName: RELEASE-NAME-victoria-metrics-single-server
template:
metadata:
labels:
Expand Down Expand Up @@ -219,14 +237,23 @@ statefulset should match snapshot:
securityContext: {}
serviceAccountName: RELEASE-NAME-victoria-metrics-single-server
terminationGracePeriodSeconds: 60
volumes:
- name: server-volume
persistentVolumeClaim:
claimName: RELEASE-NAME-victoria-metrics-single-server
statefulset with volume should match snapshot:
volumes: null
updateStrategy: {}
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: server-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 16Gi
statefulSet with volume should match snapshot:
1: |
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
labels:
app: server
Expand All @@ -238,14 +265,14 @@ statefulset with volume should match snapshot:
name: RELEASE-NAME-victoria-metrics-single-server
namespace: NAMESPACE
spec:
podManagementPolicy: OrderedReady
replicas: 1
selector:
matchLabels:
app: server
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: victoria-metrics-single
strategy:
type: Recreate
serviceName: RELEASE-NAME-victoria-metrics-single-server
template:
metadata:
labels:
Expand Down Expand Up @@ -294,7 +321,16 @@ statefulset with volume should match snapshot:
securityContext: {}
serviceAccountName: RELEASE-NAME-victoria-metrics-single-server
terminationGracePeriodSeconds: 60
volumes:
- name: server-volume
persistentVolumeClaim:
claimName: RELEASE-NAME-victoria-metrics-single-server
volumes: null
updateStrategy: {}
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: server-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 16Gi
16 changes: 6 additions & 10 deletions charts/victoria-metrics-single/tests/server_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,32 @@ chart:
templates:
- server.yaml
tests:
- it: deployment should match snapshot
- it: statefulSet should match snapshot
asserts:
- matchSnapshot: {}
set:
remoteWrite:
- url: http://vm-insert:8480/insert/0/prometheus
- it: deployment with volume should match snapshot
- it: statefulSet with volume should match snapshot
asserts:
- matchSnapshot: {}
set:
persistentVolume:
enabled: true
remoteWrite:
- url: http://vm-insert:8480/insert/0/prometheus
- it: statefulset should match snapshot
- it: deployment should match snapshot
set:
statefulSet:
enabled: true
mode: statefulSet
mode: deployment
remoteWrite:
- url: http://vm-insert:8480/insert/0/prometheus
asserts:
- matchSnapshot: {}
- it: statefulset with volume should match snapshot
- it: deployment with volume should match snapshot
set:
statefulSet:
enabled: true
mode: statefulSet
persistentVolume:
enabled: true
mode: statefulSet
remoteWrite:
- url: http://vm-insert:8480/insert/0/prometheus
asserts:
Expand Down
2 changes: 1 addition & 1 deletion charts/victoria-metrics-single/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ server:
ipFamilies: []

# -- VictoriaMetrics mode: deployment, statefulSet
mode: deployment
mode: statefulSet

# -- [K8s Deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/) specific variables
deployment:
Expand Down

0 comments on commit 6214876

Please # to comment.