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:
+5
-5
@@ -26,14 +26,14 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: rabbitmq
|
||||
app.kubernetes.io/name: rabbitmq
|
||||
release: rabbitmq
|
||||
name: rabbitmq
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: rabbitmq
|
||||
app.kubernetes.io/name: rabbitmq
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
@@ -42,7 +42,7 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: rabbitmq
|
||||
app.kubernetes.io/name: rabbitmq
|
||||
spec:
|
||||
securityContext:
|
||||
fsGroup: 999
|
||||
@@ -134,7 +134,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: rabbitmq
|
||||
app.kubernetes.io/name: rabbitmq
|
||||
release: rabbitmq
|
||||
name: rabbitmq
|
||||
spec:
|
||||
@@ -161,6 +161,6 @@ spec:
|
||||
protocol: TCP
|
||||
targetPort: stats
|
||||
selector:
|
||||
app: rabbitmq
|
||||
app.kubernetes.io/name: rabbitmq
|
||||
sessionAffinity: None
|
||||
type: NodePort
|
||||
|
||||
Reference in New Issue
Block a user