Commit 39647860 authored by J. Fernando Sánchez's avatar J. Fernando Sánchez
Browse files

update k8s files

parent 11b72d9c
......@@ -16,6 +16,7 @@ build:
- /kaniko/executor --context $CI_PROJECT_DIR --cache=true --dockerfile $CI_PROJECT_DIR/Dockerfile --cache-repo $CI_REGISTRY_IMAGE/cache --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
only:
- master
- tags
deploy:
only:
......
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: gsicrawler-web
spec:
selector:
matchLabels:
app: gsicrawler
role: gsicrawler-web
replicas: 1
template:
metadata:
......@@ -20,8 +24,8 @@ spec:
imagePullPolicy: Always
resources:
limits:
memory: "512Mi"
cpu: "200m"
memory: "1024Mi"
cpu: "500m"
ports:
- name: web
containerPort: 5000
......@@ -49,12 +53,16 @@ spec:
- name: NEWS_API_KEY
value: "${NEWS_API_KEY}"
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: gsicrawler-redis
spec:
replicas: 1
selector:
matchLabels:
role: gsicrawler-redis
app: gsicrawler
template:
metadata:
labels:
......@@ -70,4 +78,4 @@ spec:
cpu: "200m"
ports:
- name: redis
containerPort: 6379
containerPort: 6379
\ No newline at end of file
......@@ -24,4 +24,3 @@ spec:
protocol: TCP
selector:
role: gsicrawler-redis
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