From 2684cbef173d0496a1f4c0025351bd66e5906398 Mon Sep 17 00:00:00 2001 From: tmerten Date: Sat, 16 Jan 2021 01:26:33 +0100 Subject: [PATCH] Update kubernetes-deployment.yaml --- kubernetes-deployment.yaml | 655 +++++++++++++++++++------------------ 1 file changed, 340 insertions(+), 315 deletions(-) diff --git a/kubernetes-deployment.yaml b/kubernetes-deployment.yaml index 5ee6b2c..de9a55e 100644 --- a/kubernetes-deployment.yaml +++ b/kubernetes-deployment.yaml @@ -1,4 +1,19 @@ -# Zookeeper +## Zookeeper +apiVersion: v1 +kind: Service +metadata: + name: zookeeper-container + labels: + app: zookeeper-container +spec: + type: ClusterIP + selector: + app: zookeeper-container + ports: + - port: 2181 + targetPort: 2181 + protocol: TCP +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -22,22 +37,21 @@ spec: - name: ZOOKEEPER_CLIENT_PORT value: "2181" --- +## Kafka apiVersion: v1 kind: Service metadata: - name: zookeeper-container + name: kafka-container labels: - app: zookeeper-container + app: kafka-container spec: - type: ClusterIP selector: - app: zookeeper-container + app: kafka-container ports: - - port: 2181 - targetPort: 2181 + - port: 9092 + targetPort: 9092 protocol: TCP --- -# Kafka apiVersion: apps/v1 kind: Deployment metadata: @@ -67,122 +81,156 @@ spec: - name: KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR value: "1" --- +## APIGateWay apiVersion: v1 kind: Service metadata: - name: kafka-container - labels: - app: kafka-container + name: apigateway spec: selector: - app: kafka-container + app: apigateway ports: - - port: 9092 - targetPort: 9092 - protocol: TCP - -#BestelManagement -##DB + - port: 8080 + targetPort: 80 + externalIPs: + - 10.2.0.53 +--- apiVersion: apps/v1 kind: Deployment metadata: - name: bestel-db + name: apigateway labels: - app: bestel-db + app: apigateway spec: replicas: 1 selector: matchLabels: - app: bestel-db + app: apigateway template: metadata: labels: - app: bestel-db + app: apigateway spec: containers: - - name: bestel-db - image: mysql:5.7 - args: ["--default-authentication-plugin=mysql_native_password"] - env: - - name: MYSQL_ROOT_PASSWORD - value: "root" - - name: MYSQL_DATABASE - value: "Bestelling" - ports: - - containerPort: 3306 - name: mysql + - name: apigateway + image: toonmertens/apigateway --- +## SorteerItemManagement apiVersion: v1 kind: Service -metadata: - name: bestel-db -spec: - selector: - app: bestel-db - ports: - - port: 3306 +metadata: + name: sorteeritem-db-service +spec: + selector: + app: sorteeritem-db + ports: + - port: 3306 --- -##Service apiVersion: apps/v1 kind: Deployment -metadata: - name: bestel-service - labels: - app: bestel-service -spec: - replicas: 1 - selector: - matchLabels: - app: bestel-service - template: - metadata: - labels: - app: bestel-service - spec: - containers: - - name: bestel-service - image: alexismartens72/bestelmanagement:v1 - env: - - name: spring.datasource.url - value: "jdbc:mysql://bestel-db-service.default.svc.cluster.local:3306/Bestelling" +metadata: + name: sorteeritem-db-deployment + labels: + app: sorteeritem-db +spec: + replicas: 1 + selector: + matchLabels: + app: sorteeritem-db + template: + metadata: + labels: + app: sorteeritem-db + spec: + containers: + - name: sorteeritem-db + image: mysql:5.7 + args: ["--default-authentication-plugin=mysql_native_password"] + env: + - name: MYSQL_ROOT_PASSWORD + value: "root" + - name: MYSQL_DATABASE + value: "SorteerItem" + ports: + - containerPort: 3306 + name: mysql --- apiVersion: v1 kind: Service +metadata: + name: sorteeritem-management + labels: + app: sorteeritem-management +spec: + selector: + app: sorteeritem-management + ports: + - port: 2006 + targetPort: 2006 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: sorteeritem-management-deployment + labels: + app: sorteeritem-management +spec: + replicas: 1 + selector: + matchLabels: + app: sorteeritem-management + template: + metadata: + labels: + app: sorteeritem-management + spec: + containers: + - name: sorteeritem-management + image: toonmertens/sorteeritemmanagement + env: + - name: spring.datasource.url + value: "jdbc:mysql://sorteeritem-db-service.default.svc.cluster.local:3306/SorteerItem" + - name: spring.cloud.stream.kafka.binder.brokers + value: "kafka-container:9092" + - name: spring.cloud.stream.kafka.binder.zkNodes + value: "zookeeper-container:2181" +--- +## SorteerService +apiVersion: v1 +kind: Service metadata: - name: bestel-service + name: sorteer-db-service spec: selector: - app: bestel-service + app: sorteer-db ports: - - port: 2000 + - port: 3306 --- -#ExterneLeveringService -##DB apiVersion: apps/v1 kind: Deployment metadata: - name: externelevering-db + name: sorteer-db labels: - app: externelevering-db + app: sorteer-db spec: replicas: 1 selector: matchLabels: - app: externelevering-db + app: sorteer-db template: metadata: labels: - app: externelevering-db + app: sorteer-db spec: containers: - - name: externelevering-db + - name: sorteer-db image: mysql:5.7 args: ["--default-authentication-plugin=mysql_native_password"] env: - name: MYSQL_ROOT_PASSWORD value: "root" - name: MYSQL_DATABASE - value: "ExterneLevering" + value: "Sorteer" ports: - containerPort: 3306 name: mysql @@ -190,74 +238,76 @@ spec: apiVersion: v1 kind: Service metadata: - name: externelevering-db + name: sorteer-service spec: selector: - app: externelevering-db + app: sorteer-service ports: - - port: 3306 + - port: 2007 --- -##Service apiVersion: apps/v1 kind: Deployment metadata: - name: externelevering-service + name: sorteer-service labels: - app: externelevering-service + app: sorteer-service spec: replicas: 1 selector: matchLabels: - app: externelevering-service + app: sorteer-service template: metadata: labels: - app: externelevering-service + app: sorteer-service spec: containers: - - name: externelevering-service - image: alexismartens72/externeleveringservice:v1 + - name: sorteer-service + image: toonmertens/sorteerservice env: - name: spring.datasource.url - value: "jdbc:mysql://externelevering-db.default.svc.cluster.local:3306/ExterneLevering" + value: "jdbc:mysql://sorteer-db-service.default.svc.cluster.local:3306/Sorteer" + - name: spring.cloud.stream.kafka.binder.brokers + value: "kafka-container:9092" + - name: spring.cloud.stream.kafka.binder.zkNodes + value: "zookeeper-container:2181" --- +## VervoerService apiVersion: v1 kind: Service metadata: - name: externelevering-service + name: vervoer-db-service spec: selector: - app: externelevering-service + app: vervoer-db ports: - - port: 2001 + - port: 3306 --- -#FulfilmentBestellingService -##DB apiVersion: apps/v1 kind: Deployment metadata: - name: fulfilmentbestelling-db + name: vervoer-db labels: - app: fulfilmentbestelling-db + app: vervoer-db spec: replicas: 1 selector: matchLabels: - app: fulfilmentbestelling-db + app: vervoer-db template: metadata: labels: - app: fulfilmentbestelling-db + app: vervoer-db spec: containers: - - name: fulfilmentbestelling-db + - name: vervoer-db image: mysql:5.7 args: ["--default-authentication-plugin=mysql_native_password"] env: - name: MYSQL_ROOT_PASSWORD value: "root" - name: MYSQL_DATABASE - value: "Bestelling" + value: "Vervoer" ports: - containerPort: 3306 name: mysql @@ -265,74 +315,76 @@ spec: apiVersion: v1 kind: Service metadata: - name: fulfilmentbestelling-db + name: vervoer-service spec: selector: - app: fulfilmentbestelling-db + app: vervoer-service ports: - - port: 3306 + - port: 2009 --- -##Service apiVersion: apps/v1 kind: Deployment metadata: - name: fulfilmentbestelling-service + name: vervoer-service labels: - app: fulfilmentbestelling-service + app: vervoer-service spec: replicas: 1 selector: matchLabels: - app: fulfilmentbestelling-service + app: vervoer-service template: metadata: labels: - app: fulfilmentbestelling-service + app: vervoer-service spec: containers: - - name: fulfilmentbestelling-service - image: vvdsompe/fulfilmentbestelmanagement:latest + - name: vervoer-service + image: toonmertens/vervoerservice env: - name: spring.datasource.url - value: "jdbc:mysql://fulfilmentbestelling-db.default.svc.cluster.local:3306/Bestelling" ---- + value: "jdbc:mysql://vervoer-db-service.default.svc.cluster.local:3306/Vervoer" + - name: spring.cloud.stream.kafka.binder.brokers + value: "kafka-container:9092" + - name: spring.cloud.stream.kafka.binder.zkNodes + value: "zookeeper-container:2181" +--- +## BestelManagement apiVersion: v1 kind: Service metadata: - name: fulfilmentbestelling-service + name: bestel-db-service spec: selector: - app: fulfilmentbestelling-service + app: bestel-db ports: - - port: 2002 + - port: 3306 --- -#KlantenService -##DB apiVersion: apps/v1 kind: Deployment metadata: - name: klanten-db + name: bestel-db labels: - app: klanten-db + app: bestel-db spec: replicas: 1 selector: matchLabels: - app: klanten-db + app: bestel-db template: metadata: labels: - app: klanten-db + app: bestel-db spec: containers: - - name: klanten-db + - name: bestel-db image: mysql:5.7 args: ["--default-authentication-plugin=mysql_native_password"] env: - name: MYSQL_ROOT_PASSWORD value: "root" - name: MYSQL_DATABASE - value: "Klanten" + value: "Bestelling" ports: - containerPort: 3306 name: mysql @@ -340,74 +392,76 @@ spec: apiVersion: v1 kind: Service metadata: - name: klanten-db + name: bestel-service spec: selector: - app: klanten-db + app: bestel-service ports: - - port: 3306 + - port: 2000 --- -##Service apiVersion: apps/v1 kind: Deployment metadata: - name: klanten-service + name: bestel-service labels: - app: klanten-service + app: bestel-service spec: replicas: 1 selector: matchLabels: - app: klanten-service + app: bestel-service template: metadata: labels: - app: klanten-service + app: bestel-service spec: containers: - - name: klanten-service - image: vvdsompe/klantenservice:latest + - name: bestel-service + image: alexismartens72/bestelmanagement:v1 env: - name: spring.datasource.url - value: "jdbc:mysql://klanten-db.default.svc.cluster.local:3306/Klanten" + value: "jdbc:mysql://bestel-db-service.default.svc.cluster.local:3306/Bestelling" + - name: spring.cloud.stream.kafka.binder.brokers + value: "kafka-container:9092" + - name: spring.cloud.stream.kafka.binder.zkNodes + value: "zookeeper-container:2181" --- +## TrackAndTraceService apiVersion: v1 kind: Service metadata: - name: klanten-service + name: trackandtrace-db-service spec: selector: - app: klanten-service + app: trackandtrace-db ports: - - port: 2003 + - port: 3306 --- -#KoerierService -##DB apiVersion: apps/v1 kind: Deployment metadata: - name: koerier-db + name: trackandtrace-db labels: - app: koerier-db + app: trackandtrace-db spec: replicas: 1 selector: matchLabels: - app: koerier-db + app: trackandtrace-db template: metadata: labels: - app: koerier-db + app: trackandtrace-db spec: containers: - - name: koerier-db + - name: trackandtrace-db image: mysql:5.7 args: ["--default-authentication-plugin=mysql_native_password"] env: - name: MYSQL_ROOT_PASSWORD value: "root" - name: MYSQL_DATABASE - value: "Koerier" + value: "TrackAndTrace" ports: - containerPort: 3306 name: mysql @@ -415,74 +469,76 @@ spec: apiVersion: v1 kind: Service metadata: - name: koerier-db + name: trackandtrace-service spec: selector: - app: koerier-db + app: trackandtrace-service ports: - - port: 3306 + - port: 2008 --- -##Service apiVersion: apps/v1 kind: Deployment metadata: - name: koerier-service + name: trackandtrace-service labels: - app: koerier-service + app: trackandtrace-service spec: replicas: 1 selector: matchLabels: - app: koerier-service + app: trackandtrace-service template: metadata: labels: - app: koerier-service + app: trackandtrace-service spec: containers: - - name: koerier-service - image: vvdsompe/koerierservice:latest + - name: trackandtrace-service + image: alexismartens72/trackandtraceservice:v1 env: - name: spring.datasource.url - value: "jdbc:mysql://koerier-db.default.svc.cluster.local:3306/Koerier" + value: "jdbc:mysql://trackandtrace-db-service.default.svc.cluster.local:3306/TrackAndTrace" + - name: spring.cloud.stream.kafka.binder.brokers + value: "kafka-container:9092" + - name: spring.cloud.stream.kafka.binder.zkNodes + value: "zookeeper-container:2181" --- +## ExterneLeveringService apiVersion: v1 kind: Service metadata: - name: koerier-service + name: externelevering-db-service spec: selector: - app: koerier-service + app: externelevering-db ports: - - port: 2004 + - port: 3306 --- -#MagazijnService -##DB apiVersion: apps/v1 kind: Deployment metadata: - name: magazijn-db + name: externelevering-db labels: - app: magazijn-db + app: externelevering-db spec: replicas: 1 selector: matchLabels: - app: magazijn-db + app: externelevering-db template: metadata: labels: - app: magazijn-db + app: externelevering-db spec: containers: - - name: magazijn-db + - name: externelevering-db image: mysql:5.7 args: ["--default-authentication-plugin=mysql_native_password"] env: - name: MYSQL_ROOT_PASSWORD value: "root" - name: MYSQL_DATABASE - value: "Magazijn" + value: "ExterneLevering" ports: - containerPort: 3306 name: mysql @@ -490,74 +546,76 @@ spec: apiVersion: v1 kind: Service metadata: - name: magazijn-db + name: externelevering-service spec: selector: - app: magazijn-db + app: externelevering-service ports: - - port: 3306 + - port: 2001 --- -##Service apiVersion: apps/v1 kind: Deployment metadata: - name: magazijn-service + name: externelevering-service labels: - app: magazijn-service + app: externelevering-service spec: replicas: 1 selector: matchLabels: - app: magazijn-service + app: externelevering-service template: metadata: labels: - app: magazijn-service + app: externelevering-service spec: containers: - - name: magazijn-service - image: abcdefghijklmnop12345/tristan-services + - name: externelevering-service + image: alexismartens72/externeleveringservice:v1 env: - name: spring.datasource.url - value: "jdbc:mysql://magazijn-db.default.svc.cluster.local:3306/Pakket" + value: "jdbc:mysql://externelevering-db-service.default.svc.cluster.local:3306/ExterneLevering" + - name: spring.cloud.stream.kafka.binder.brokers + value: "kafka-container:9092" + - name: spring.cloud.stream.kafka.binder.zkNodes + value: "zookeeper-container:2181" --- +## FulfilmentBestellingService apiVersion: v1 kind: Service metadata: - name: magazijn-service + name: fulfilmentbestelling-db-service spec: selector: - app: magazijn-service + app: fulfilmentbestelling-db ports: - - port: 2005 + - port: 3306 --- -#SorteerItemService -##DB apiVersion: apps/v1 kind: Deployment metadata: - name: sorteeritem-db + name: fulfilmentbestelling-db labels: - app: sorteeritem-db + app: fulfilmentbestelling-db spec: replicas: 1 selector: matchLabels: - app: sorteeritem-db + app: fulfilmentbestelling-db template: metadata: labels: - app: sorteeritem-db + app: fulfilmentbestelling-db spec: containers: - - name: sorteeritem-db + - name: fulfilmentbestelling-db image: mysql:5.7 args: ["--default-authentication-plugin=mysql_native_password"] env: - name: MYSQL_ROOT_PASSWORD value: "root" - name: MYSQL_DATABASE - value: "SorteerItem" + value: "Bestelling" ports: - containerPort: 3306 name: mysql @@ -565,74 +623,76 @@ spec: apiVersion: v1 kind: Service metadata: - name: sorteeritem-db + name: fulfilmentbestelling-service spec: selector: - app: sorteeritem-db + app: fulfilmentbestelling-service ports: - - port: 3306 + - port: 2002 --- -##Service apiVersion: apps/v1 kind: Deployment metadata: - name: sorteeritem-service + name: fulfilmentbestelling-service labels: - app: sorteeritem-service + app: fulfilmentbestelling-service spec: replicas: 1 selector: matchLabels: - app: sorteeritem-service + app: fulfilmentbestelling-service template: metadata: labels: - app: sorteeritem-service + app: fulfilmentbestelling-service spec: containers: - - name: sorteeritem-service - image: toonmertens/sorteeritemmanagement + - name: fulfilmentbestelling-service + image: vvdsompe/fulfilmentbestelmanagement:latest env: - name: spring.datasource.url - value: "jdbc:mysql://sorteeritem-db.default.svc.cluster.local:3306/SorteerItem" + value: "jdbc:mysql://fulfilmentbestelling-db-service.default.svc.cluster.local:3306/Bestelling" + - name: spring.cloud.stream.kafka.binder.brokers + value: "kafka-container:9092" + - name: spring.cloud.stream.kafka.binder.zkNodes + value: "zookeeper-container:2181" --- +## KlantenService apiVersion: v1 kind: Service metadata: - name: sorteeritem-service + name: klanten-db-service spec: selector: - app: sorteeritem-service + app: klanten-db ports: - - port: 2006 + - port: 3306 --- -#SorteerService -##DB apiVersion: apps/v1 kind: Deployment metadata: - name: sorteer-db + name: klanten-db labels: - app: sorteer-db + app: klanten-db spec: replicas: 1 selector: matchLabels: - app: sorteer-db + app: klanten-db template: metadata: labels: - app: sorteer-db + app: klanten-db spec: containers: - - name: sorteer-db + - name: klanten-db image: mysql:5.7 args: ["--default-authentication-plugin=mysql_native_password"] env: - name: MYSQL_ROOT_PASSWORD value: "root" - name: MYSQL_DATABASE - value: "Sorteer" + value: "Klanten" ports: - containerPort: 3306 name: mysql @@ -640,149 +700,153 @@ spec: apiVersion: v1 kind: Service metadata: - name: sorteer-db + name: klanten-service spec: selector: - app: sorteer-db + app: klanten-service ports: - - port: 3306 + - port: 2003 --- -##Service apiVersion: apps/v1 kind: Deployment metadata: - name: sorteer-service + name: klanten-service labels: - app: sorteer-service + app: klanten-service spec: replicas: 1 selector: matchLabels: - app: sorteer-service + app: klanten-service template: metadata: labels: - app: sorteer-service + app: klanten-service spec: containers: - - name: sorteer-service - image: toonmertens/sorteerservice + - name: klanten-service + image: vvdsompe/klantenservice:latest env: - name: spring.datasource.url - value: "jdbc:mysql://sorteer-db.default.svc.cluster.local:3306/Sorteer" + value: "jdbc:mysql://klanten-db-service.default.svc.cluster.local:3306/Klanten" + - name: spring.cloud.stream.kafka.binder.brokers + value: "kafka-container:9092" + - name: spring.cloud.stream.kafka.binder.zkNodes + value: "zookeeper-container:2181" --- +## KoerierService apiVersion: v1 kind: Service metadata: - name: sorteer-service + name: koerier-db-service spec: selector: - app: sorteer-service + app: koerier-db ports: - - port: 2007 + - port: 3306 --- -#TrackAndTraceService -##DB apiVersion: apps/v1 kind: Deployment metadata: - name: trackandtrace-db + name: koerier-db labels: - app: trackandtrace-db + app: koerier-db spec: replicas: 1 selector: matchLabels: - app: trackandtrace-db + app: koerier-db template: metadata: labels: - app: trackandtrace-db + app: koerier-db spec: containers: - - name: trackandtrace-db + - name: koerier-db image: mysql:5.7 args: ["--default-authentication-plugin=mysql_native_password"] env: - name: MYSQL_ROOT_PASSWORD value: "root" - name: MYSQL_DATABASE - value: "TrackAndTrace" + value: "Koerier" ports: - containerPort: 3306 name: mysql ---- +--- apiVersion: v1 kind: Service metadata: - name: trackandtrace-db + name: koerier-service spec: selector: - app: trackandtrace-db + app: koerier-service ports: - - port: 3306 + - port: 2004 --- -##Service apiVersion: apps/v1 kind: Deployment metadata: - name: trackandtrace-service + name: koerier-service labels: - app: trackandtrace-service + app: koerier-service spec: replicas: 1 selector: matchLabels: - app: trackandtrace-service + app: koerier-service template: metadata: labels: - app: trackandtrace-service + app: koerier-service spec: containers: - - name: trackandtrace-service - image: alexismartens72/trackandtraceservice:v1 + - name: koerier-service + image: vvdsompe/koerierservice:latest env: - name: spring.datasource.url - value: "jdbc:mysql://trackandtrace-db.default.svc.cluster.local:3306/TrackAndTrace" + value: "jdbc:mysql://koerier-db-service.default.svc.cluster.local:3306/Koerier" + - name: spring.cloud.stream.kafka.binder.brokers + value: "kafka-container:9092" + - name: spring.cloud.stream.kafka.binder.zkNodes + value: "zookeeper-container:2181" --- +## MagazijnService apiVersion: v1 kind: Service metadata: - name: trackandtrace-service + name: magazijn-db-service spec: selector: - app: trackandtrace-service + app: magazijn-db ports: - - port: 2008 + - port: 3306 --- -#VervoerService -##DB apiVersion: apps/v1 kind: Deployment metadata: - name: vervoer-db + name: magazijn-db labels: - app: vervoer-db + app: magazijn-db spec: replicas: 1 selector: matchLabels: - app: vervoer-db + app: magazijn-db template: metadata: labels: - app: vervoer-db + app: magazijn-db spec: containers: - - name: vervoer-db + - name: magazijn-db image: mysql:5.7 args: ["--default-authentication-plugin=mysql_native_password"] env: - name: MYSQL_ROOT_PASSWORD value: "root" - name: MYSQL_DATABASE - value: "Vervoer" + value: "Magazijn" ports: - containerPort: 3306 name: mysql @@ -790,49 +854,51 @@ spec: apiVersion: v1 kind: Service metadata: - name: vervoer-db + name: magazijn-service spec: selector: - app: vervoer-db + app: magazijn-service ports: - - port: 3306 + - port: 2005 --- -##Service apiVersion: apps/v1 kind: Deployment metadata: - name: vervoer-service + name: magazijn-service labels: - app: vervoer-service + app: magazijn-service spec: replicas: 1 selector: matchLabels: - app: vervoer-service + app: magazijn-service template: metadata: labels: - app: vervoer-service + app: magazijn-service spec: containers: - - name: vervoer-service - image: toonmertens/vervoerservice + - name: magazijn-service + image: abcdefghijklmnop12345/tristan-services env: - name: spring.datasource.url - value: "jdbc:mysql://vervoer-db.default.svc.cluster.local:3306/Vervoer" + value: "jdbc:mysql://magazijn-db-service.default.svc.cluster.local:3306/Pakket" + - name: spring.cloud.stream.kafka.binder.brokers + value: "kafka-container:9092" + - name: spring.cloud.stream.kafka.binder.zkNodes + value: "zookeeper-container:2181" --- +## ZendingManagement apiVersion: v1 kind: Service metadata: - name: vervoer-service + name: zending-db-service spec: selector: - app: vervoer-service + app: zending-db ports: - - port: 2009 + - port: 3306 --- -#ZendingService -##DB apiVersion: apps/v1 kind: Deployment metadata: @@ -865,14 +931,13 @@ spec: apiVersion: v1 kind: Service metadata: - name: zending-db + name: zending-service spec: selector: - app: zending-db + app: zending-service ports: - - port: 3306 + - port: 2010 --- -##Service apiVersion: apps/v1 kind: Deployment metadata: @@ -894,48 +959,8 @@ spec: image: abcdefghijklmnop12345/tristan-services-zending env: - name: spring.datasource.url - value: "jdbc:mysql://zending-db.default.svc.cluster.local:3306/Zending" ---- -apiVersion: v1 -kind: Service -metadata: - name: zending-service -spec: - selector: - app: zending-service - ports: - - port: 2010 ---- -#APIGateway -##Service -apiVersion: apps/v1 -kind: Deployment -metadata: - name: apigateway - labels: - app: apigateway -spec: - replicas: 1 - selector: - matchLabels: - app: apigateway - template: - metadata: - labels: - app: apigateway - spec: - containers: - - name: apigateway - image: toonmertens/apigateway ---- -apiVersion: v1 -kind: Service -metadata: - name: apigateway -spec: - selector: - app: apigateway - ports: - - port: 8080 - targetPort: 80 ---- + value: "jdbc:mysql://zending-db-service.default.svc.cluster.local:3306/Zending" + - name: spring.cloud.stream.kafka.binder.brokers + value: "kafka-container:9092" + - name: spring.cloud.stream.kafka.binder.zkNodes + value: "zookeeper-container:2181"