chore: update labels to use app.kubernetes.io/name format

Refactor Kubernetes resource labels for rabbitmq, mysql, and postgres 
to follow the standardized naming convention of 
app.kubernetes.io/name. This change enhances clarity and conformity 
across resources, improving maintainability and alignment with 
Kubernetes best practices.
This commit is contained in:
2025-01-24 19:00:40 +01:00
parent 58fcf8a5ba
commit 73bb4b38c3
3 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -16,13 +16,13 @@ metadata:
spec:
selector:
matchLabels:
app: mysql
app.kubernetes.io/name: mysql
strategy:
type: Recreate
template:
metadata:
labels:
app: mysql
app.kubernetes.io/name: mysql
spec:
containers:
- image: mysql:9.2.0@sha256:45f5ae20cfe1d6e6c43684dfffef17db1e1e8dc9bf7133ceaafb25c16b10f31b
@@ -46,7 +46,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
app: mysql
app.kubernetes.io/name: mysql
name: mysql
spec:
ports:
@@ -55,6 +55,6 @@ spec:
nodePort: 3306
protocol: TCP
selector:
app: mysql
app.kubernetes.io/name: mysql
sessionAffinity: None
type: NodePort