From 9b9dc461fb1627e67f178aa7f0f486bb22e36843 Mon Sep 17 00:00:00 2001 From: Laurent Broudoux Date: Sun, 18 Aug 2024 21:14:39 +0200 Subject: [PATCH] feat: #120 Name the ports and move postman-runtime to 0.5.0 Signed-off-by: Laurent Broudoux --- k8s/async-minion-deployment.yml | 3 ++- k8s/keycloak-postgres-deployment.yml | 3 ++- k8s/microcks-deployment.yml | 6 +++++- k8s/mongodb-deployment.yml | 3 ++- k8s/postman-runtime-deployment.yml | 5 +++-- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/k8s/async-minion-deployment.yml b/k8s/async-minion-deployment.yml index 50e545a..995d78a 100644 --- a/k8s/async-minion-deployment.yml +++ b/k8s/async-minion-deployment.yml @@ -115,7 +115,8 @@ spec: {% endif %} ports: - - containerPort: 8080 + - name: http + containerPort: 8080 protocol: TCP livenessProbe: httpGet: diff --git a/k8s/keycloak-postgres-deployment.yml b/k8s/keycloak-postgres-deployment.yml index 7c48ebb..0066dbe 100644 --- a/k8s/keycloak-postgres-deployment.yml +++ b/k8s/keycloak-postgres-deployment.yml @@ -39,7 +39,8 @@ spec: args: ["-c", "max_connections=100", "-c", "shared_buffers=12MB"] imagePullPolicy: IfNotPresent ports: - - containerPort: 5432 + - name: postgres + containerPort: 5432 protocol: TCP readinessProbe: timeoutSeconds: 1 diff --git a/k8s/microcks-deployment.yml b/k8s/microcks-deployment.yml index 7214f23..b5ff137 100644 --- a/k8s/microcks-deployment.yml +++ b/k8s/microcks-deployment.yml @@ -37,7 +37,11 @@ spec: image: "{{registry|default('quay.io')}}/microcks/microcks:{{version}}" imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 + - name: http + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9090 protocol: TCP env: - name: JAVA_OPTIONS diff --git a/k8s/mongodb-deployment.yml b/k8s/mongodb-deployment.yml index 7e0dd02..566632b 100644 --- a/k8s/mongodb-deployment.yml +++ b/k8s/mongodb-deployment.yml @@ -44,7 +44,8 @@ spec: image: {{mongodb.image}} args: ["--dbpath","/var/lib/mongodb/data"] ports: - - containerPort: 27017 + - name: mongodb + containerPort: 27017 protocol: TCP env: - name: MONGODB_USER diff --git a/k8s/postman-runtime-deployment.yml b/k8s/postman-runtime-deployment.yml index ab30d03..995bd7e 100644 --- a/k8s/postman-runtime-deployment.yml +++ b/k8s/postman-runtime-deployment.yml @@ -32,9 +32,10 @@ spec: spec: containers: - name: postman-runtime - image: "{{registry|default('quay.io')}}/microcks/microcks-postman-runtime:latest" + image: "{{registry|default('quay.io')}}/microcks/microcks-postman-runtime:0.5.0" ports: - - containerPort: 3000 + - name: http + containerPort: 3000 protocol: TCP env: - name: LOG_LEVEL