From ee69800d4989a09e7090048b0851926de921a409 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 30 Aug 2023 12:40:13 +0200 Subject: [PATCH] Set more precise labels, selectors and matchers --- src/main/resources/taiga/async-deployment.yaml | 4 ++-- src/main/resources/taiga/async-rabbitmq-deployment.yaml | 4 ++-- src/main/resources/taiga/async-rabbitmq-service.yaml | 2 +- src/main/resources/taiga/async-service.yaml | 2 +- src/main/resources/taiga/back-deployment.yaml | 4 ++-- src/main/resources/taiga/back-service.yaml | 2 +- src/main/resources/taiga/events-deployment.yaml | 4 ++-- src/main/resources/taiga/events-rabbitmq-deployment.yaml | 4 ++-- src/main/resources/taiga/events-rabbitmq-service.yaml | 2 +- src/main/resources/taiga/events-service.yaml | 2 +- src/main/resources/taiga/front-deployment.yaml | 4 ++-- src/main/resources/taiga/front-service.yaml | 2 +- src/main/resources/taiga/gateway-deployment.yaml | 4 ++-- src/main/resources/taiga/gateway-service.yaml | 2 +- src/main/resources/taiga/protected-deployment.yaml | 4 ++-- src/main/resources/taiga/protected-service.yaml | 3 +-- 16 files changed, 24 insertions(+), 25 deletions(-) diff --git a/src/main/resources/taiga/async-deployment.yaml b/src/main/resources/taiga/async-deployment.yaml index 84e6f26..686ed72 100644 --- a/src/main/resources/taiga/async-deployment.yaml +++ b/src/main/resources/taiga/async-deployment.yaml @@ -9,11 +9,11 @@ spec: replicas: 1 selector: matchLabels: - app: taiga + app.kubernetes.io/component: taiga-async template: metadata: labels: - app: taiga + app.kubernetes.io/component: taiga-async spec: containers: - name: taiga-async diff --git a/src/main/resources/taiga/async-rabbitmq-deployment.yaml b/src/main/resources/taiga/async-rabbitmq-deployment.yaml index af02c46..0fab2e5 100644 --- a/src/main/resources/taiga/async-rabbitmq-deployment.yaml +++ b/src/main/resources/taiga/async-rabbitmq-deployment.yaml @@ -9,11 +9,11 @@ spec: replicas: 1 selector: matchLabels: - app: taiga + app.kubernetes.io/component: taiga-async-rabbitmq template: metadata: labels: - app: taiga + app.kubernetes.io/component: taiga-async-rabbitmq spec: containers: - name: taiga-async-rabbitmq diff --git a/src/main/resources/taiga/async-rabbitmq-service.yaml b/src/main/resources/taiga/async-rabbitmq-service.yaml index 91950d4..dc8a1e1 100644 --- a/src/main/resources/taiga/async-rabbitmq-service.yaml +++ b/src/main/resources/taiga/async-rabbitmq-service.yaml @@ -9,7 +9,7 @@ metadata: spec: type: ClusterIP selector: - app: taiga + app.kubernetes.io/component: taiga-async-rabbitmq ports: - name: amqp targetPort: amqp diff --git a/src/main/resources/taiga/async-service.yaml b/src/main/resources/taiga/async-service.yaml index 943056f..f24f84a 100644 --- a/src/main/resources/taiga/async-service.yaml +++ b/src/main/resources/taiga/async-service.yaml @@ -9,7 +9,7 @@ metadata: spec: type: ClusterIP selector: - app: taiga + app.kubernetes.io/component: taiga-async ports: - name: http targetPort: http diff --git a/src/main/resources/taiga/back-deployment.yaml b/src/main/resources/taiga/back-deployment.yaml index 603b832..c18cd5c 100644 --- a/src/main/resources/taiga/back-deployment.yaml +++ b/src/main/resources/taiga/back-deployment.yaml @@ -9,11 +9,11 @@ spec: replicas: 1 selector: matchLabels: - app: taiga + app.kubernetes.io/component: taiga-back template: metadata: labels: - app: taiga + app.kubernetes.io/component: taiga-back spec: containers: - name: taiga-back diff --git a/src/main/resources/taiga/back-service.yaml b/src/main/resources/taiga/back-service.yaml index 8306a2c..b6f9d75 100644 --- a/src/main/resources/taiga/back-service.yaml +++ b/src/main/resources/taiga/back-service.yaml @@ -9,7 +9,7 @@ metadata: spec: type: ClusterIP selector: - app: taiga + app.kubernetes.io/component: taiga-back ports: - name: http targetPort: http diff --git a/src/main/resources/taiga/events-deployment.yaml b/src/main/resources/taiga/events-deployment.yaml index 9745172..824f2ba 100644 --- a/src/main/resources/taiga/events-deployment.yaml +++ b/src/main/resources/taiga/events-deployment.yaml @@ -9,11 +9,11 @@ spec: replicas: 1 selector: matchLabels: - app: taiga # ToDo: Check for consistent labels (maybe use app.kubernetes.io) + app.kubernetes.io/component: taiga-events template: metadata: labels: - app: taiga + app.kubernetes.io/component: taiga-events spec: containers: - name: taiga-events diff --git a/src/main/resources/taiga/events-rabbitmq-deployment.yaml b/src/main/resources/taiga/events-rabbitmq-deployment.yaml index 768ace5..bb78f80 100644 --- a/src/main/resources/taiga/events-rabbitmq-deployment.yaml +++ b/src/main/resources/taiga/events-rabbitmq-deployment.yaml @@ -9,11 +9,11 @@ spec: replicas: 1 selector: matchLabels: - app: taiga + app.kubernetes.io/component: taiga-events-rabbitmq template: metadata: labels: - app: taiga + app.kubernetes.io/component: taiga-events-rabbitmq spec: containers: - name: taiga-events-rabbitmq diff --git a/src/main/resources/taiga/events-rabbitmq-service.yaml b/src/main/resources/taiga/events-rabbitmq-service.yaml index ce86f13..2f542fc 100644 --- a/src/main/resources/taiga/events-rabbitmq-service.yaml +++ b/src/main/resources/taiga/events-rabbitmq-service.yaml @@ -9,7 +9,7 @@ metadata: spec: type: ClusterIP selector: - app: taiga + app.kubernetes.io/component: taiga-events-rabbitmq ports: - name: amqp targetPort: amqp diff --git a/src/main/resources/taiga/events-service.yaml b/src/main/resources/taiga/events-service.yaml index 37dd8aa..4ec0f51 100644 --- a/src/main/resources/taiga/events-service.yaml +++ b/src/main/resources/taiga/events-service.yaml @@ -9,7 +9,7 @@ metadata: spec: type: ClusterIP selector: - app: taiga + app.kubernetes.io/component: taiga-events ports: - name: http targetPort: http diff --git a/src/main/resources/taiga/front-deployment.yaml b/src/main/resources/taiga/front-deployment.yaml index 2600cc4..08424d8 100644 --- a/src/main/resources/taiga/front-deployment.yaml +++ b/src/main/resources/taiga/front-deployment.yaml @@ -9,11 +9,11 @@ spec: replicas: 1 selector: matchLabels: - app: taiga + app.kubernetes.io/component: taiga-front template: metadata: labels: - app: taiga + app.kubernetes.io/component: taiga-front spec: containers: - name: taiga-front diff --git a/src/main/resources/taiga/front-service.yaml b/src/main/resources/taiga/front-service.yaml index 97dcfb2..d586429 100644 --- a/src/main/resources/taiga/front-service.yaml +++ b/src/main/resources/taiga/front-service.yaml @@ -9,7 +9,7 @@ metadata: spec: type: ClusterIP selector: - app: taiga + app.kubernetes.io/component: taiga-front ports: - name: http targetPort: http diff --git a/src/main/resources/taiga/gateway-deployment.yaml b/src/main/resources/taiga/gateway-deployment.yaml index a3d4b49..b6c1beb 100644 --- a/src/main/resources/taiga/gateway-deployment.yaml +++ b/src/main/resources/taiga/gateway-deployment.yaml @@ -9,11 +9,11 @@ spec: replicas: 1 selector: matchLabels: - app: taiga + app.kubernetes.io/component: taiga-gateway template: metadata: labels: - app: taiga + app.kubernetes.io/component: taiga-gateway spec: restartPolicy: Always containers: diff --git a/src/main/resources/taiga/gateway-service.yaml b/src/main/resources/taiga/gateway-service.yaml index 7387138..441dedf 100644 --- a/src/main/resources/taiga/gateway-service.yaml +++ b/src/main/resources/taiga/gateway-service.yaml @@ -9,7 +9,7 @@ metadata: spec: type: ClusterIP selector: - app: taiga + app.kubernetes.io/component: taiga-gateway ports: - name: http targetPort: http diff --git a/src/main/resources/taiga/protected-deployment.yaml b/src/main/resources/taiga/protected-deployment.yaml index b4a74fc..729de1e 100644 --- a/src/main/resources/taiga/protected-deployment.yaml +++ b/src/main/resources/taiga/protected-deployment.yaml @@ -9,11 +9,11 @@ spec: replicas: 1 selector: matchLabels: - app: taiga + app.kubernetes.io/component: taiga-protected template: metadata: labels: - app: taiga + app.kubernetes.io/component: taiga-protected spec: containers: - name: taiga-protected diff --git a/src/main/resources/taiga/protected-service.yaml b/src/main/resources/taiga/protected-service.yaml index ab2fdc9..6f448ac 100644 --- a/src/main/resources/taiga/protected-service.yaml +++ b/src/main/resources/taiga/protected-service.yaml @@ -9,10 +9,9 @@ metadata: spec: type: ClusterIP selector: - app: taiga + app.kubernetes.io/component: taiga-protected ports: - name: http targetPort: http port: 8003 protocol: TCP - \ No newline at end of file