Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Script recalcul calque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ERASME
Script recalcul calque
Commits
af643535
Commit
af643535
authored
2 years ago
by
Pierre-Gilles LEVALLOIS
Browse files
Options
Downloads
Patches
Plain Diff
Resources Optimization
parent
274bbbcf
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!6
Fully functional version that calculate layer with all stages
Pipeline
#60691
canceled
2 years ago
Stage: Build Calqul
Stage: Deploy Calqul Buttons
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
deployment/pods/db-calqul.yml
+73
-73
73 additions, 73 deletions
deployment/pods/db-calqul.yml
with
75 additions
and
75 deletions
.gitlab-ci.yml
+
2
−
2
View file @
af643535
...
@@ -252,8 +252,8 @@ Build Calqul Git-lfs:
...
@@ -252,8 +252,8 @@ Build Calqul Git-lfs:
variables
:
variables
:
CALQUL_ACTION
:
"
compute-factors"
CALQUL_ACTION
:
"
compute-factors"
MEM_REQUEST
:
"
2000Mi"
MEM_REQUEST
:
"
2000Mi"
CPU_REQUEST
:
"
15
00m"
CPU_REQUEST
:
"
20
00m"
MEM_LIMIT
:
"
2
000Mi"
MEM_LIMIT
:
"
4
000Mi"
CPU_LIMIT
:
"
2000m"
CPU_LIMIT
:
"
2000m"
4. Compute Indices
:
4. Compute Indices
:
...
...
This diff is collapsed.
Click to expand it.
deployment/pods/db-calqul.yml
+
73
−
73
View file @
af643535
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
name
:
calqul-db-__NAMESPACE_ENV__
name
:
calqul-db-__NAMESPACE_ENV__
namespace
:
__NAMESPACE__
namespace
:
__NAMESPACE__
labels
:
labels
:
apps
:
calqul-db-__NAMESPACE_ENV__
apps
:
calqul-db-__NAMESPACE_ENV__
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
app
:
calqul-db-__NAMESPACE_ENV__
app
:
calqul-db-__NAMESPACE_ENV__
role
:
primary
role
:
primary
tier
:
database
tier
:
database
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
app
:
calqul-db-__NAMESPACE_ENV__
app
:
calqul-db-__NAMESPACE_ENV__
role
:
primary
role
:
primary
tier
:
database
tier
:
database
spec
:
spec
:
imagePullSecrets
:
imagePullSecrets
:
-
name
:
forge-secret
-
name
:
forge-secret
volumes
:
volumes
:
-
name
:
arb-data
-
name
:
arb-data
persistentVolumeClaim
:
persistentVolumeClaim
:
claimName
:
pvc-01-__NAMESPACE__-claim
claimName
:
pvc-01-__NAMESPACE__-claim
containers
:
containers
:
-
name
:
calqul-db-__NAMESPACE_ENV__
-
name
:
calqul-db-__NAMESPACE_ENV__
image
:
registry.forge.grandlyon.com/erasme/script-recalcul-calque/calqul-db-__NAMESPACE_ENV__
image
:
registry.forge.grandlyon.com/erasme/script-recalcul-calque/calqul-db-__NAMESPACE_ENV__
imagePullPolicy
:
Always
imagePullPolicy
:
Always
ports
:
ports
:
-
containerPort
:
5432
-
containerPort
:
5432
protocol
:
TCP
protocol
:
TCP
readinessProbe
:
readinessProbe
:
tcpSocket
:
tcpSocket
:
port
:
5432
port
:
5432
initialDelaySeconds
:
15
initialDelaySeconds
:
15
periodSeconds
:
10
periodSeconds
:
10
livenessProbe
:
livenessProbe
:
tcpSocket
:
tcpSocket
:
port
:
5432
port
:
5432
initialDelaySeconds
:
15
initialDelaySeconds
:
15
periodSeconds
:
20
periodSeconds
:
20
resources
:
resources
:
limits
:
limits
:
cpu
:
400m
cpu
:
400m
memory
:
500Mi
memory
:
500Mi
requests
:
requests
:
cpu
:
2
00m
cpu
:
4
00m
memory
:
256
Mi
memory
:
500
Mi
env
:
env
:
-
name
:
POSTGRES_DB
-
name
:
POSTGRES_DB
value
:
"
__POSTGRES_DB__"
value
:
"
__POSTGRES_DB__"
-
name
:
POSTGRES_PASSWORD
-
name
:
POSTGRES_PASSWORD
value
:
"
__POSTGRES_PASSWORD__"
value
:
"
__POSTGRES_PASSWORD__"
-
name
:
POSTGRES_PORT
-
name
:
POSTGRES_PORT
value
:
"
__POSTGRES_PORT__"
value
:
"
__POSTGRES_PORT__"
-
name
:
POSTGRES_SERVER
-
name
:
POSTGRES_SERVER
value
:
"
__POSTGRES_SERVER__"
value
:
"
__POSTGRES_SERVER__"
-
name
:
POSTGRES_USER
-
name
:
POSTGRES_USER
value
:
"
__POSTGRES_USER__"
value
:
"
__POSTGRES_USER__"
-
name
:
POSTGRES_SCHEMA
-
name
:
POSTGRES_SCHEMA
value
:
"
__POSTGRES_SCHEMA__"
value
:
"
__POSTGRES_SCHEMA__"
# need to define PGDATA env var because not using the default /var/lib/postgresql/data, but a subpath under it.
# need to define PGDATA env var because not using the default /var/lib/postgresql/data, but a subpath under it.
-
name
:
PGDATA
-
name
:
PGDATA
value
:
/arb-data/pgdata
value
:
/arb-data/pgdata
volumeMounts
:
volumeMounts
:
# need a subpath as postgres wants an empty folder (the mounted folder `$PGDATA` has a `lost+found` directory)
# need a subpath as postgres wants an empty folder (the mounted folder `$PGDATA` has a `lost+found` directory)
# see https://stackoverflow.com/questions/51168558/how-to-mount-a-postgresql-volume-using-aws-ebs-in-kubernete
# see https://stackoverflow.com/questions/51168558/how-to-mount-a-postgresql-volume-using-aws-ebs-in-kubernete
-
name
:
arb-data
-
name
:
arb-data
mountPath
:
"
/arb-data"
mountPath
:
"
/arb-data"
subpath
:
pgdata
subpath
:
pgdata
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