Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
social
gsicrawler
Commits
39647860
Commit
39647860
authored
Mar 01, 2022
by
J. Fernando Sánchez
Browse files
update k8s files
parent
11b72d9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
39647860
...
...
@@ -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
:
...
...
k8s/gsicrawler-deployment.yaml.tmpl
View file @
39647860
---
apiVersion:
extensions/v1beta
1
apiVersion:
apps/v
1
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: "
512
Mi"
cpu: "
2
00m"
memory: "
1024
Mi"
cpu: "
5
00m"
ports:
- name: web
containerPort: 5000
...
...
@@ -49,12 +53,16 @@ spec:
- name: NEWS_API_KEY
value: "${NEWS_API_KEY}"
---
apiVersion:
extensions/v1beta
1
apiVersion:
apps/v
1
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
k8s/gsicrawler-svc.yaml
View file @
39647860
...
...
@@ -24,4 +24,3 @@ spec:
protocol
:
TCP
selector
:
role
:
gsicrawler-redis
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment