Commit d2fc848b authored by Stefan Dähling's avatar Stefan Dähling
Browse files

update k8s yaml

parent 9abee388
Pipeline #438689 passed with stages
in 3 minutes and 9 seconds
......@@ -425,25 +425,28 @@ spec:
# ------------------- Cassandra deployment ------------------- #
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
namespace: clonemap
name: cass-deployment
name: cass-ssset
labels:
app: cass
spec:
serviceName: cassandra
replicas: 3
selector:
matchLabels:
app: cass
template:
metadata:
namespace: clonemap
labels:
app: cass
spec:
terminationGracePeriodSeconds: 1800
containers:
- name: cass-container
image: cassandra
imagePullPolicy: Always
ports:
- containerPort: 7000
name: intra-node
......@@ -453,6 +456,41 @@ spec:
name: jmx
- containerPort: 9042
name: cql-port
#resources:
# limits:
# cpu: "2"
# memory: "4Gi"
# requests:
# cpu: "1"
# memory: "2Gi"
securityContext:
capabilities:
add:
- IPC_LOCK
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- nodetool drain
env:
#- name: MAX_HEAP_SIZE
# value: 512M
#- name: HEAP_NEWSIZE
# value: 100M
- name: CASSANDRA_SEEDS
value: "cass-ssset-0.cassandra.clonemap.svc.cluster.local"
#- name: CASSANDRA_CLUSTER_NAME
# value: "K8Demo"
#- name: CASSANDRA_DC
# value: "DC1-K8Demo"
#- name: CASSANDRA_RACK
# value: "Rack1-K8Demo"
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
---
# ------------------- Cassandra init job ------------------- #
......@@ -611,4 +649,71 @@ spec:
path: /api/df/0/svc
port: 12000
initialDelaySeconds: 30
timeoutSeconds: 20
---
# ------------------- Frontend Service ------------------- #
apiVersion: v1
kind: Service
metadata:
namespace: clonemap
name: fe
labels:
app: fe
spec:
type: NodePort
ports:
- port: 13000
protocol: TCP
targetPort: fe-port
nodePort: 30013
selector:
app: fe
role: frontend
---
# -------------------- Frontend Deployment -------------------- #
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: clonemap
name: fe-deployment
labels:
app: fe
spec:
selector:
matchLabels:
app: fe
template:
metadata:
namespace: clonemap
labels:
app: fe
role: frontend
spec:
containers:
- name: fe-container
image: registry.git.rwth-aachen.de/acs/public/cloud/mas/clonemap/frontend
env:
- name: CLONEMAP_DEPLOYMENT_TYPE
value: "production"
- name: CLONEMAP_LOG_LEVEL
value: "error"
resources:
requests:
memory: "256Mi"
cpu: "500m"
limits:
memory: "512Mi"
cpu: "1"
ports:
- containerPort: 13000
name: fe-port
livenessProbe:
httpGet:
path: /api/overview
port: 13000
initialDelaySeconds: 30
timeoutSeconds: 20
\ 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