aboutsummaryrefslogtreecommitdiff
path: root/k8s/mi.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'k8s/mi.yaml')
-rw-r--r--k8s/mi.yaml68
1 files changed, 68 insertions, 0 deletions
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