From 69584cf1c57c5c770908f4fb176f1ba4c950e7cf Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Fri, 24 Jan 2025 14:57:48 +0100 Subject: [PATCH] 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. --- k8s/deploy.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/k8s/deploy.yaml b/k8s/deploy.yaml index 8245a36..24306c2 100644 --- a/k8s/deploy.yaml +++ b/k8s/deploy.yaml @@ -3,7 +3,7 @@ kind: Deployment metadata: name: lingonpaj-site labels: - app: lingonpaj-site + app.kubernetes.io/name: lingonpaj-site annotations: kubernetes.io/change-cause: "${TIMESTAMP} Deployed commit id: ${COMMIT}" spec: @@ -16,11 +16,11 @@ spec: minReadySeconds: 30 selector: matchLabels: - app: lingonpaj-site + app.kubernetes.io/name: lingonpaj-site template: metadata: labels: - app: lingonpaj-site + app.kubernetes.io/name: lingonpaj-site spec: affinity: podAntiAffinity: @@ -29,7 +29,7 @@ spec: podAffinityTerm: labelSelector: matchExpressions: - - key: "app" + - key: "app.kubernetes.io/name" operator: In values: - lingonpaj-site @@ -63,11 +63,11 @@ kind: Service metadata: name: lingonpaj-site labels: - app: lingonpaj-site + app.kubernetes.io/name: lingonpaj-site spec: type: NodePort selector: - app: lingonpaj-site + app.kubernetes.io/name: lingonpaj-site ports: - port: 80 targetPort: 80