Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
metagenedb
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Metagenomics
metagenedb
Commits
ec567cd7
Commit
ec567cd7
authored
5 years ago
by
Kenzo-Hugo Hillion
Browse files
Options
Downloads
Patches
Plain Diff
try to add redis to kubernetes
parent
c9771a9c
No related branches found
No related tags found
1 merge request
!59
Prod
Pipeline
#26338
passed
5 years ago
Stage: build
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ci/deploy/deploy.sh
+3
-0
3 additions, 0 deletions
ci/deploy/deploy.sh
ci/kubernetes/backend.yaml
+2
-0
2 additions, 0 deletions
ci/kubernetes/backend.yaml
ci/kubernetes/redis.yaml
+42
-0
42 additions, 0 deletions
ci/kubernetes/redis.yaml
with
47 additions
and
0 deletions
ci/deploy/deploy.sh
+
3
−
0
View file @
ec567cd7
...
...
@@ -20,6 +20,9 @@ kubectl create secret generic backend-cron-credentials -n ${NAMESPACE} --from-li
## DB
envsubst < ci/kubernetes/postgresql.yaml | kubectl apply
-n
${
NAMESPACE
}
-f
-
kubectl
-n
${
NAMESPACE
}
wait
--for
=
condition
=
available
--timeout
=
600s deployment/postgresql
## Redis
envsubst < ci/kubernetes/redis.yaml | kubectl apply
-n
${
NAMESPACE
}
-f
-
kubectl
-n
${
NAMESPACE
}
wait
--for
=
condition
=
available
--timeout
=
600s deployment/redis
## Backend
envsubst < ci/kubernetes/backend.yaml | kubectl apply
-n
${
NAMESPACE
}
-f
-
kubectl
-n
${
NAMESPACE
}
patch deployment backend
-p
"{
\"
spec
\"
:{
\"
template
\"
:{
\"
metadata
\"
:{
\"
labels
\"
:{
\"
date
\"
:
\"
`
date
+
'%s'
`
\"
}}}}}"
...
...
This diff is collapsed.
Click to expand it.
ci/kubernetes/backend.yaml
+
2
−
0
View file @
ec567cd7
...
...
@@ -43,6 +43,8 @@ spec:
secretKeyRef
:
name
:
backend-secret
key
:
secret_key
-
name
:
REDIS_HOST
value
:
redis
-
name
:
PORT
value
:
"
8000"
-
name
:
DEBUG
...
...
This diff is collapsed.
Click to expand it.
ci/kubernetes/redis.yaml
0 → 100644
+
42
−
0
View file @
ec567cd7
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
redis
labels
:
deployment
:
redis
spec
:
selector
:
matchLabels
:
pod
:
redis
replicas
:
1
template
:
metadata
:
labels
:
pod
:
redis
spec
:
containers
:
-
name
:
master
image
:
redis
resources
:
requests
:
cpu
:
"
100m"
memory
:
"
100Mi"
limits
:
cpu
:
"
200m"
memory
:
"
200Mi"
ports
:
-
containerPort
:
6379
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
redis
labels
:
app
:
redis
spec
:
selector
:
pod
:
redis
ports
:
-
protocol
:
TCP
port
:
6379
targetPort
:
6379
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment