Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tutor
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
Container registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas MENARD
Tutor
Commits
2342930c
Commit
2342930c
authored
5 years ago
by
Thomas MENARD
Browse files
Options
Downloads
Patches
Plain Diff
Add imagePullPolicy to Always
parent
f5d04303
No related branches found
No related tags found
No related merge requests found
Pipeline
#31184
passed
5 years ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tutor/templates/k8s/deployments.yml
+11
-0
11 additions, 0 deletions
tutor/templates/k8s/deployments.yml
tutor/templates/k8s/jobs.yml
+4
-0
4 additions, 0 deletions
tutor/templates/k8s/jobs.yml
with
15 additions
and
0 deletions
tutor/templates/k8s/deployments.yml
+
11
−
0
View file @
2342930c
...
@@ -16,6 +16,7 @@ spec:
...
@@ -16,6 +16,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
cms
-
name
:
cms
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
env
:
env
:
-
name
:
SERVICE_VARIANT
-
name
:
SERVICE_VARIANT
...
@@ -60,6 +61,7 @@ spec:
...
@@ -60,6 +61,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
cms-worker
-
name
:
cms-worker
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
args
:
[
"
./manage.py"
,
"
cms"
,
"
celery"
,
"
worker"
,
"
--loglevel=info"
,
"
--hostname=edx.cms.core.default.%%h"
,
"
--maxtasksperchild"
,
"
100"
]
args
:
[
"
./manage.py"
,
"
cms"
,
"
celery"
,
"
worker"
,
"
--loglevel=info"
,
"
--hostname=edx.cms.core.default.%%h"
,
"
--maxtasksperchild"
,
"
100"
]
env
:
env
:
...
@@ -134,6 +136,7 @@ spec:
...
@@ -134,6 +136,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
lms
-
name
:
lms
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
ports
:
ports
:
-
containerPort
:
8000
-
containerPort
:
8000
...
@@ -175,6 +178,7 @@ spec:
...
@@ -175,6 +178,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
lms-worker
-
name
:
lms-worker
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
args
:
[
"
./manage.py"
,
"
lms"
,
"
celery"
,
"
worker"
,
"
--loglevel=info"
,
"
--hostname=edx.lms.core.default.%%h"
,
"
--maxtasksperchild"
,
"
100"
]
args
:
[
"
./manage.py"
,
"
lms"
,
"
celery"
,
"
worker"
,
"
--loglevel=info"
,
"
--hostname=edx.lms.core.default.%%h"
,
"
--maxtasksperchild"
,
"
100"
]
env
:
env
:
...
@@ -220,6 +224,7 @@ spec:
...
@@ -220,6 +224,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
elasticsearch
-
name
:
elasticsearch
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_ELASTICSEARCH
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_ELASTICSEARCH
}}
env
:
env
:
-
name
:
ES_JAVA_OPTS
-
name
:
ES_JAVA_OPTS
...
@@ -257,6 +262,7 @@ spec:
...
@@ -257,6 +262,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
memcached
-
name
:
memcached
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_MEMCACHED
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_MEMCACHED
}}
ports
:
ports
:
-
containerPort
:
11211
-
containerPort
:
11211
...
@@ -282,6 +288,7 @@ spec:
...
@@ -282,6 +288,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
mongodb
-
name
:
mongodb
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_MONGODB
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_MONGODB
}}
args
:
[
"
mongod"
,
"
--smallfiles"
,
"
--nojournal"
,
"
--storageEngine"
,
"
wiredTiger"
]
args
:
[
"
mongod"
,
"
--smallfiles"
,
"
--nojournal"
,
"
--storageEngine"
,
"
wiredTiger"
]
ports
:
ports
:
...
@@ -316,6 +323,7 @@ spec:
...
@@ -316,6 +323,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
mysql
-
name
:
mysql
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_MYSQL
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_MYSQL
}}
args
:
[
"
mysqld"
,
"
--character-set-server=utf8"
,
"
--collation-server=utf8_general_ci"
]
args
:
[
"
mysqld"
,
"
--character-set-server=utf8"
,
"
--collation-server=utf8_general_ci"
]
env
:
env
:
...
@@ -359,6 +367,7 @@ spec:
...
@@ -359,6 +367,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
smtp
-
name
:
smtp
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_SMTP
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_SMTP
}}
ports
:
ports
:
-
containerPort
:
25
-
containerPort
:
25
...
@@ -395,6 +404,7 @@ spec:
...
@@ -395,6 +404,7 @@ spec:
{{
patch("k8s-deployments-nginx-init-containers")|indent(8)
}}
{{
patch("k8s-deployments-nginx-init-containers")|indent(8)
}}
containers
:
containers
:
-
name
:
nginx
-
name
:
nginx
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_NGINX
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_NGINX
}}
volumeMounts
:
volumeMounts
:
-
mountPath
:
/etc/nginx/conf.d/
-
mountPath
:
/etc/nginx/conf.d/
...
@@ -444,6 +454,7 @@ spec:
...
@@ -444,6 +454,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
rabbitmq
-
name
:
rabbitmq
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_RABBITMQ
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_RABBITMQ
}}
ports
:
ports
:
-
containerPort
:
5672
-
containerPort
:
5672
...
...
This diff is collapsed.
Click to expand it.
tutor/templates/k8s/jobs.yml
+
4
−
0
View file @
2342930c
...
@@ -11,6 +11,7 @@ spec:
...
@@ -11,6 +11,7 @@ spec:
restartPolicy
:
Never
restartPolicy
:
Never
containers
:
containers
:
-
name
:
lms
-
name
:
lms
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
volumeMounts
:
volumeMounts
:
-
mountPath
:
/openedx/edx-platform/lms/envs/tutor/
-
mountPath
:
/openedx/edx-platform/lms/envs/tutor/
...
@@ -42,6 +43,7 @@ spec:
...
@@ -42,6 +43,7 @@ spec:
restartPolicy
:
Never
restartPolicy
:
Never
containers
:
containers
:
-
name
:
cms
-
name
:
cms
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_OPENEDX
}}
env
:
env
:
-
name
:
SERVICE_VARIANT
-
name
:
SERVICE_VARIANT
...
@@ -76,6 +78,7 @@ spec:
...
@@ -76,6 +78,7 @@ spec:
restartPolicy
:
Never
restartPolicy
:
Never
containers
:
containers
:
-
name
:
mysql
-
name
:
mysql
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_MYSQL
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_MYSQL
}}
command
:
[]
command
:
[]
---
---
...
@@ -91,6 +94,7 @@ spec:
...
@@ -91,6 +94,7 @@ spec:
restartPolicy
:
Never
restartPolicy
:
Never
containers
:
containers
:
-
name
:
forum
-
name
:
forum
imagePullPolicy
:
Always
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_FORUM
}}
image
:
{{
DOCKER_REGISTRY
}}{{
DOCKER_IMAGE_FORUM
}}
env
:
env
:
-
name
:
SEARCH_SERVER
-
name
:
SEARCH_SERVER
...
...
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