aboutsummaryrefslogtreecommitdiff
path: root/k8s
diff options
context:
space:
mode:
Diffstat (limited to 'k8s')
-rw-r--r--k8s/db.yaml8
-rw-r--r--k8s/mi.yaml68
2 files changed, 76 insertions, 0 deletions
diff --git a/k8s/db.yaml b/k8s/db.yaml
new file mode 100644
index 0000000..e62ff52
--- /dev/null
+++ b/k8s/db.yaml
@@ -0,0 +1,8 @@
+---
+apiVersion: v1
+kind: Secret
+metadata:
+ name: membership-import-admin
+data:
+ username: cG9zdGdyZXM=
+ password: ZGlxODJ5REQ3b3hFSVA1Zw==
diff --git a/k8s/mi.yaml b/k8s/mi.yaml
new file mode 100644
index 0000000..2d1dcb7
--- /dev/null
+++ b/k8s/mi.yaml
@@ -0,0 +1,68 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: mi-processor-deployment
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: mi-processor-pod
+ template:
+ metadata:
+ labels:
+ app: mi-processor-pod
+ spec:
+ containers:
+ - name: mi-processor
+ image: trygvis/mi-processor:latest
+ ports:
+ - containerPort: 8080
+ volumeMounts:
+ - name: pgpass
+ mountPath: /secret/pgpass
+ volumes:
+ - name: pgpass
+ secret:
+ secretName: membership-import-admin
+
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: mi-gateway-deployment
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: mi-gateway-pod
+ template:
+ metadata:
+ labels:
+ app: mi-gateway-pod
+ spec:
+ containers:
+ - name: mi-gateway
+ image: trygvis/mi-gateway:latest
+ ports:
+ - containerPort: 8080
+ volumeMounts:
+ - name: pgpass
+ mountPath: /secret/pgpass
+ volumes:
+ - name: pgpass
+ secret:
+ secretName: membership-import-admin
+
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: mi-gateway-service
+spec:
+ selector:
+ app: mi-gateway-pod
+ type: LoadBalancer
+ ports:
+ - protocol: TCP
+ port: 80
+ targetPort: 8080