fix(k8s): update app labels to use recommended format

Refactor Kubernetes deployment and service labels to follow 
the recommended label format. Change all occurrences of 
"app: lingonpaj-site" to "app.kubernetes.io/name: lingonpaj-site" 
for improved consistency and compliance with Kubernetes best 
practices.
This commit is contained in:
2025-01-24 14:57:48 +01:00
parent 302243aefd
commit 69584cf1c5
+6 -6
View File
@@ -3,7 +3,7 @@ kind: Deployment
metadata: metadata:
name: lingonpaj-site name: lingonpaj-site
labels: labels:
app: lingonpaj-site app.kubernetes.io/name: lingonpaj-site
annotations: annotations:
kubernetes.io/change-cause: "${TIMESTAMP} Deployed commit id: ${COMMIT}" kubernetes.io/change-cause: "${TIMESTAMP} Deployed commit id: ${COMMIT}"
spec: spec:
@@ -16,11 +16,11 @@ spec:
minReadySeconds: 30 minReadySeconds: 30
selector: selector:
matchLabels: matchLabels:
app: lingonpaj-site app.kubernetes.io/name: lingonpaj-site
template: template:
metadata: metadata:
labels: labels:
app: lingonpaj-site app.kubernetes.io/name: lingonpaj-site
spec: spec:
affinity: affinity:
podAntiAffinity: podAntiAffinity:
@@ -29,7 +29,7 @@ spec:
podAffinityTerm: podAffinityTerm:
labelSelector: labelSelector:
matchExpressions: matchExpressions:
- key: "app" - key: "app.kubernetes.io/name"
operator: In operator: In
values: values:
- lingonpaj-site - lingonpaj-site
@@ -63,11 +63,11 @@ kind: Service
metadata: metadata:
name: lingonpaj-site name: lingonpaj-site
labels: labels:
app: lingonpaj-site app.kubernetes.io/name: lingonpaj-site
spec: spec:
type: NodePort type: NodePort
selector: selector:
app: lingonpaj-site app.kubernetes.io/name: lingonpaj-site
ports: ports:
- port: 80 - port: 80
targetPort: 80 targetPort: 80