Skip to content

Commit e87994c

Browse files
authored
Capture all resources by WorkloadMonitors (#1024)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced WorkloadMonitor resources for tcp-balancer, vm-disk, and VPN applications, enabling enhanced workload monitoring capabilities. - **Bug Fixes** - Standardized Kubernetes resource labels across multiple applications for improved consistency and compatibility. - **Chores** - Updated chart versions for several applications, including ClickHouse, FerretDB, http-cache, MySQL, Postgres, Redis, tcp-balancer, virtual-machine, vm-disk, vm-instance, and VPN. - Updated Docker image reference for the installer to use the latest version. - Refreshed internal version mappings for multiple packages. - Added standardized instance labels to Kubernetes resources across multiple applications for better tracking and management. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents a887e19 + b140f1b commit e87994c

30 files changed

Lines changed: 101 additions & 29 deletions

‎packages/apps/clickhouse/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type: application
1616
# This is the chart version. This version number should be incremented each time you make changes
1717
# to the chart and its templates, including the app version.
1818
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19-
version: 0.9.0
19+
version: 0.9.1
2020

2121
# This is the version number of the application being deployed. This version number should be
2222
# incremented each time you make changes to the application. Versions are not expected to

‎packages/apps/clickhouse/templates/clickhouse.yaml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,19 @@ spec:
9292
templates:
9393
volumeClaimTemplates:
9494
- name: data-volume-template
95+
metadata:
96+
labels:
97+
app.kubernetes.io/instance: {{ .Release.Name }}
9598
spec:
9699
accessModes:
97100
- ReadWriteOnce
98101
resources:
99102
requests:
100103
storage: {{ .Values.size }}
101104
- name: log-volume-template
105+
metadata:
106+
labels:
107+
app.kubernetes.io/instance: {{ .Release.Name }}
102108
spec:
103109
accessModes:
104110
- ReadWriteOnce
@@ -107,6 +113,9 @@ spec:
107113
storage: {{ .Values.logStorageSize }}
108114
podTemplates:
109115
- name: clickhouse-per-host
116+
metadata:
117+
labels:
118+
app.kubernetes.io/instance: {{ .Release.Name }}
110119
spec:
111120
affinity:
112121
podAntiAffinity:
@@ -133,6 +142,9 @@ spec:
133142
mountPath: /var/log/clickhouse-server
134143
serviceTemplates:
135144
- name: svc-template
145+
metadata:
146+
labels:
147+
app.kubernetes.io/instance: {{ .Release.Name }}
136148
generateName: chendpoint-{chi}
137149
spec:
138150
ports:

‎packages/apps/clickhouse/templates/workloadmonitor.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ spec:
99
kind: clickhouse
1010
type: clickhouse
1111
selector:
12-
clickhouse.altinity.com/chi: {{ $.Release.Name }}
12+
app.kubernetes.io/instance: {{ $.Release.Name }}
1313
version: {{ $.Chart.Version }}

‎packages/apps/ferretdb/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type: application
1616
# This is the chart version. This version number should be incremented each time you make changes
1717
# to the chart and its templates, including the app version.
1818
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19-
version: 0.6.0
19+
version: 0.6.1
2020

2121
# This is the version number of the application being deployed. This version number should be
2222
# incremented each time you make changes to the application. Versions are not expected to

‎packages/apps/ferretdb/templates/external-svc.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: {{ .Release.Name }}
5+
labels:
6+
app.kubernetes.io/instance: {{ .Release.Name }}
57
spec:
68
type: {{ ternary "LoadBalancer" "ClusterIP" .Values.external }}
79
{{- if .Values.external }}

‎packages/apps/ferretdb/templates/ferretdb.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ spec:
1212
metadata:
1313
labels:
1414
app: {{ .Release.Name }}
15+
app.kubernetes.io/instance: {{ .Release.Name }}
1516
spec:
1617
containers:
1718
- name: ferretdb

‎packages/apps/ferretdb/templates/postgres.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ spec:
3535
inheritedMetadata:
3636
labels:
3737
policy.cozystack.io/allow-to-apiserver: "true"
38+
app.kubernetes.io/instance: {{ .Release.Name }}
3839

3940
{{- if .Values.users }}
4041
managed:

‎packages/apps/ferretdb/templates/workloadmonitor.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ spec:
99
kind: ferretdb
1010
type: ferretdb
1111
selector:
12-
app: {{ $.Release.Name }}
12+
app.kubernetes.io/instance: {{ $.Release.Name }}
1313
version: {{ $.Chart.Version }}

‎packages/apps/http-cache/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type: application
1616
# This is the chart version. This version number should be incremented each time you make changes
1717
# to the chart and its templates, including the app version.
1818
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19-
version: 0.5.0
19+
version: 0.5.1
2020

2121
# This is the version number of the application being deployed. This version number should be
2222
# incremented each time you make changes to the application. Versions are not expected to

‎packages/apps/mysql/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type: application
1616
# This is the chart version. This version number should be incremented each time you make changes
1717
# to the chart and its templates, including the app version.
1818
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19-
version: 0.7.0
19+
version: 0.7.1
2020

2121
# This is the version number of the application being deployed. This version number should be
2222
# incremented each time you make changes to the application. Versions are not expected to

0 commit comments

Comments
 (0)