Commit c186050f authored by carlosribas's avatar carlosribas
Browse files

Split services into different pods

parent 73ea01ae
apiVersion: v1
kind: Service
metadata:
name: memcached
labels:
app: memcached
spec:
ports:
- port: 8052
protocol: TCP
targetPort: 8052
name: memcached-8052
selector:
app: memcached
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: memcached
spec:
replicas: 1
selector:
matchLabels:
app: memcached
template:
metadata:
labels:
app: memcached
spec:
containers:
- image: memcached:1.6.7-alpine
name: memcached
resources:
requests:
memory: "1024Mi"
cpu: "250m"
limits:
memory: "2048Mi"
cpu: "500m"
args:
- '-m 2048 -p 8052'
ports:
- containerPort: 8052
restartPolicy: Always
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: redis
labels:
app: redis
spec:
ports:
- port: 8051
protocol: TCP
targetPort: 8051
name: redis-8051
selector:
app: redis
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
spec:
replicas: 1
selector:
matchLabels:
app: redis
template:
metadata:
labels:
app: redis
spec:
containers:
- image: redis:6.0.8-alpine
name: redis
resources:
requests:
memory: "1024Mi"
cpu: "250m"
limits:
memory: "2048Mi"
cpu: "500m"
args:
- '--port 8051'
ports:
- containerPort: 8051
restartPolicy: Always
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
app: nginx
spec:
ports:
- port: 8000
targetPort: 80
protocol: TCP
name: http
selector:
app: rnacentral
---
apiVersion: v1
kind: Service
metadata:
name: rnacentral
labels:
......@@ -32,50 +17,22 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: redis
labels:
app: redis
spec:
ports:
- port: 8051
protocol: TCP
targetPort: 8051
name: redis-8051
selector:
app: rnacentral
---
apiVersion: v1
kind: Service
metadata:
name: memcached
name: nginx
labels:
app: memcached
app: nginx
spec:
ports:
- port: 8052
- port: 8000
targetPort: 80
protocol: TCP
targetPort: 8052
name: memcached-8052
name: http
selector:
app: rnacentral
---
apiVersion: v1
kind: ConfigMap
metadata:
name: common-variables
data:
HTTP_PROXY: http://hx-wwwcache.ebi.ac.uk:3128
HTTPS_PROXY: http://hx-wwwcache.ebi.ac.uk:3128
http_proxy: http://hx-wwwcache.ebi.ac.uk:3128
https_proxy: http://hx-wwwcache.ebi.ac.uk:3128
no_proxy: localhost,.cluster.local
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-config
labels:
app: nginx
data:
local.conf: |-
# Gunicorn application
......@@ -133,7 +90,7 @@ spec:
- secretRef:
name: variables
- configMapRef:
name: common-variables
name: proxy-variables
- image: nginx:1.17-alpine
name: nginx
resources:
......@@ -151,32 +108,6 @@ spec:
subPath: local.conf
- name: static-volume
mountPath: /srv/rnacentral/static
- image: memcached:1.6.7-alpine
name: memcached
resources:
requests:
memory: "1024Mi"
cpu: "250m"
limits:
memory: "2048Mi"
cpu: "500m"
args:
- '-m 2048 -p 8052'
ports:
- containerPort: 8052
- image: redis:6.0.8-alpine
name: redis
resources:
requests:
memory: "1024Mi"
cpu: "250m"
limits:
memory: "2048Mi"
cpu: "500m"
args:
- '--port 8051'
ports:
- containerPort: 8051
restartPolicy: Always
volumes:
- name: nginx-config
......
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