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