Commit 695531ab authored by Günter Hipler's avatar Günter Hipler
Browse files

changed k8s manifests

parent b5d4aafb
Pipeline #23956 passed with stage
in 4 minutes and 43 seconds
#include "oaiconfigmap/oai.conf"
#include "secureconfigmap/secure.conf"
include "oai"
include "secure"
include "oaiconfigmap/oai.conf"
include "secureconfigmap/secure.conf"
#include "oai"
#include "secure"
play {
......
#!/usr/bin/env bash
cd ../conf
kubectl create configmap-oai-definitions --from-file ./oai.conf
kubectl create configmap-oai-definitions --from-file ./secure.conf
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
#namespace: memobase
namespace: memobase
name: oai-deployment
labels:
app: oai-api
......@@ -20,15 +20,13 @@ spec:
containers:
- name: oai-api-prod-container
#image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/externalapis/oai:latest
image: guenterh/oaimemobase:latest
terminationMessagePolicy: FallbackToLogsOnError
image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/externalapis/oai:latest
#image: guenterh/oaimemobase:latest
ports:
- containerPort: 9000
name: http
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- mountPath: /app/conf/oaiconfigmap
name: oaiconf
......@@ -41,9 +39,9 @@ spec:
- name: RESUMPTION_TOKEN_TTL
value: "3"
- name: ELASTICSEARCH_INDEX
value: oai-v2
value: oai-v3
- name: ELASTICSEARCH_HOSTS
value: 192.168.1.116
value: mb-es1.memobase.unibas.ch
- name: ELASTICSEARCH_PORT
value: "8080"
- name: ELASTICSEARCH_CLUSTER
......
apiVersion: v1
kind: Service
metadata:
#namespace: memobase
namespace: memobase
name: oai-service
labels:
app: oai-api
spec:
type: NodePort
ports:
- port: 9000
nodePort: 30001
selector:
app: oai-api
tier: web
#clusterIP: None
\ No newline at end of file
clusterIP: None
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
#namespace: memobase
name: oai-deployment
labels:
app: oai-api
spec:
selector:
matchLabels:
app: oai-api
replicas: 1
template:
metadata:
labels:
app: oai-api
tier: web
spec:
#serviceAccountName: oai-service-account #to be able to manage other pods inside the cluster
containers:
- name: oai-api-prod-container
#image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/externalapis/oai:latest
image: guenterh/oaimemobase:latest
terminationMessagePolicy: FallbackToLogsOnError
ports:
- containerPort: 9000
name: http
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- mountPath: /app/conf/oaiconfigmap
name: oaiconf
- mountPath: /app/conf/secureconfigmap
name: secureconf
env:
- name: RESPONSE_LISTLENGTH
value: "30"
- name: RESUMPTION_TOKEN_TTL
value: "3"
- name: ELASTICSEARCH_INDEX
value: oai-v2
- name: ELASTICSEARCH_HOSTS
value: 192.168.1.116
- name: ELASTICSEARCH_PORT
value: "8080"
- name: ELASTICSEARCH_CLUSTER
value: test-memobase-search-cluster
volumes:
- name: oaiconf
configMap:
name: configmap-oai-definitions
items:
- key: oai.conf
path: oai.conf
- name: secureconf
configMap:
name: configmap-oai-secure
items:
- key: secure.conf
path: secure.conf
apiVersion: v1
kind: Service
metadata:
#namespace: memobase
name: oai-service
labels:
app: oai-api
spec:
type: NodePort
ports:
- port: 9000
nodePort: 30001
selector:
app: oai-api
tier: web
#clusterIP: None
\ No newline at end of file
Supports Markdown
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