Skip to content

Commit

Permalink
Merge pull request #4 from edly-io/fix/k8s-image-secret
Browse files Browse the repository at this point in the history
Add image pull secret to k8s-deployment
  • Loading branch information
hinakhadim authored Sep 25, 2023
2 parents d6e7a7f + cc859bc commit 6905213
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tutordiscovery/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "16.0.0"
__version__ = "16.0.1"

# Handle version suffix for nightly, just like tutor core.
__version_suffix__ = ""
Expand Down
6 changes: 6 additions & 0 deletions tutordiscovery/patches/k8s-deployments
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
containers:
- name: discovery
image: {{ DISCOVERY_DOCKER_IMAGE }}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8000
volumeMounts:
Expand All @@ -32,6 +33,8 @@ spec:
- name: settings
configMap:
name: discovery-settings
imagePullSecrets:
- name: {{ IMAGE_PULL_SECRET }}



Expand All @@ -57,6 +60,7 @@ spec:
containers:
- name: discovery-worker
image: {{ DISCOVERY_DOCKER_IMAGE }}
imagePullPolicy: IfNotPresent
args: ["celery", "--app=course_discovery.celery", "worker", "--loglevel=info", "--max-tasks-per-child=100"]
env:
- name: SERVICE_VARIANT
Expand All @@ -73,3 +77,5 @@ spec:
- name: settings
configMap:
name: discovery-settings
imagePullSecrets:
- name: {{ IMAGE_PULL_SECRET }}

0 comments on commit 6905213

Please sign in to comment.