From 432e9cc0f6cffe9559ee9025617eabca1c2bee9d Mon Sep 17 00:00:00 2001 From: marcsello Date: Sun, 19 Apr 2020 21:53:30 +0200 Subject: [PATCH] Added k8s stuff --- k8s/configmap.yaml | 12 ++++++++++++ k8s/deployment.yaml | 27 +++++++++++++++++++++++++++ k8s/service.yaml | 11 +++++++++++ 3 files changed, 50 insertions(+) create mode 100644 k8s/configmap.yaml create mode 100644 k8s/deployment.yaml create mode 100644 k8s/service.yaml diff --git a/k8s/configmap.yaml b/k8s/configmap.yaml new file mode 100644 index 0000000..6e465d2 --- /dev/null +++ b/k8s/configmap.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: model-service + labels: + app: model-service + namespace: birbnetes +data: + SENTRY_DSN: https://6d243347cf9f4fc6a54759c3eb34e864@sentry.kmlabz.com/8 + RELEASE_ID: luna-k8s + RELEASEMODE: release + PIKA_URL: amqp://user:1wZVQnP5vy@birb-rabbitmq:5672/ \ No newline at end of file diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml new file mode 100644 index 0000000..6875ba6 --- /dev/null +++ b/k8s/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: extractor-service + namespace: birbnetes + labels: + app: extractor-service +spec: + replicas: 1 + selector: + matchLabels: + app: extractor-service + strategy: + type: Recreate + template: + metadata: + labels: + app: extractor-service + spec: + containers: + - image: registry.kmlabz.com/tormakris/extractor-service + name: extractor-service + envFrom: + - configMapRef: + name: extractor-service + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/k8s/service.yaml b/k8s/service.yaml new file mode 100644 index 0000000..8f4c3f4 --- /dev/null +++ b/k8s/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: extractor-service + namespace: birbnetes + labels: + app: extractor-service +spec: + selector: + app: extractor-service + type: ClusterIP \ No newline at end of file