Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Commit b32b5369 authored by Lionel Walter's avatar Lionel Walter
Browse files

Reorganize kubernetes manifests, MEMO-456

parent 7a40c72f
apiVersion: apps/v1
kind: Deployment
metadata:
name: import-api-deployment
name: import-api-prod-deployment
namespace: memobase
labels:
app: import-api-prod-app
spec:
selector:
matchLabels:
app: import-api-app
app: import-api-prod-app
replicas: 1
template:
metadata:
labels:
app: import-api-app
app: import-api-prod-app
tier: web
spec:
serviceAccountName: import-api-service-account #to be able to manage other pods inside the cluster
containers:
- name: import-api-container
image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/import-process/import-api:MEMO-135-136-137-272-merge
- name: import-api-prod-container
image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/import-process/import-api:0.8
envFrom:
- secretRef:
name: drupal-api-credentials
......
......@@ -2,7 +2,7 @@ apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
namespace: memobase
name: memobase-import-ingress
name: memobase-import-prod-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
......@@ -18,5 +18,5 @@ spec:
paths:
- path: /
backend:
serviceName: import-api
serviceName: import-api-prod
servicePort: 5000
\ No newline at end of file
......@@ -2,13 +2,13 @@ apiVersion: v1
kind: Service
metadata:
namespace: memobase
name: import-api
name: import-api-prod
labels:
app: import-api-app
app: import-api-prod-app
spec:
ports:
- port: 5000
selector:
app: import-api-app
app: import-api-prod-app
tier: web
clusterIP: None
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
name: import-api-test-deployment
namespace: memobase
labels:
app: import-api-test-app
spec:
selector:
matchLabels:
app: import-api-test-app
replicas: 1
template:
metadata:
labels:
app: import-api-test-app
tier: web
spec:
serviceAccountName: import-api-service-account #to be able to manage other pods inside the cluster
containers:
- name: import-api-test-container
image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/import-process/import-api:0.7.3
envFrom:
- secretRef:
name: drupal-api-credentials
- configMapRef:
name: "prod-kafka-bootstrap-servers"
ports:
- containerPort: 5000
name: http
protocol: TCP
imagePullPolicy: Always
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
namespace: memobase
name: memobase-import-test-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
tls:
- hosts:
- test.import.memobase.k8s.unibas.ch
secretName: test.import.memobase.k8s.unibas.ch-tls
rules:
- host: test.import.memobase.k8s.unibas.ch
http:
paths:
- path: /
backend:
serviceName: import-api-test
servicePort: 5000
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
namespace: memobase
name: import-api-test
labels:
app: import-api-test-app
spec:
ports:
- port: 5000
selector:
app: import-api-test-app
tier: web
clusterIP: None
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment