From d3c61643986007c57907dac12e61bd7d83e560c0 Mon Sep 17 00:00:00 2001 From: slaventius Date: Wed, 8 Feb 2023 19:37:03 +0300 Subject: [PATCH] * --- deploy/auth-db-config.yaml | 8 ++++++++ deploy/auth-db-deployment.yaml | 25 +++++++++++++++++++++++++ deploy/auth-db-service.yaml | 14 ++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 deploy/auth-db-config.yaml create mode 100644 deploy/auth-db-deployment.yaml create mode 100644 deploy/auth-db-service.yaml diff --git a/deploy/auth-db-config.yaml b/deploy/auth-db-config.yaml new file mode 100644 index 0000000..ea9354f --- /dev/null +++ b/deploy/auth-db-config.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: auth-db-config +data: + KAFKA_HOST: "37.143.12.169" + KAFKA_PORT: "9092" + APP_PORT: "9995" diff --git a/deploy/auth-db-deployment.yaml b/deploy/auth-db-deployment.yaml new file mode 100644 index 0000000..d8c5c02 --- /dev/null +++ b/deploy/auth-db-deployment.yaml @@ -0,0 +1,25 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: auth-db-application + labels: + app: auth-db-application +spec: + replicas: 1 + selector: + matchLabels: + app: auth-db-application + template: + metadata: + labels: + app: auth-db-application + spec: + containers: + - name: auth-db + image: slaventius/test3k_auth_db:latest + imagePullPolicy: Always + ports: + - containerPort: 9995 + envFrom: + - configMapRef: + name: auth-db-config diff --git a/deploy/auth-db-service.yaml b/deploy/auth-db-service.yaml new file mode 100644 index 0000000..0931025 --- /dev/null +++ b/deploy/auth-db-service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: auth-db-service + labels: + app: auth-db-application +spec: + type: NodePort + selector: + app: auth-db-application + ports: + - protocol: TCP + port: 9995 + targetPort: 9995