Compatibility with newer job-running scheme on k8s

This commit is contained in:
Régis Behmo 2020-04-26 00:01:02 +02:00
parent 13d654d02f
commit 75fd6228dd
3 changed files with 27 additions and 19 deletions

View File

@ -1 +1 @@
__version__ = "0.1.14"
__version__ = "0.1.15"

View File

@ -1,18 +0,0 @@
---
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
name: {{ DISCOVERY_HOST|replace(".", "-") }}
spec:
secretName: {{ DISCOVERY_HOST }}-tls
issuerRef:
name: letsencrypt
commonName: {{ DISCOVERY_HOST }}
dnsNames:
- {{ DISCOVERY_HOST }}
acme:
config:
- http01:
ingress: web
domains:
- {{ DISCOVERY_HOST }}

View File

@ -0,0 +1,26 @@
---
apiVersion: batch/v1
kind: Job
metadata:
name: discovery-job
labels:
app.kubernetes.io/component: job
spec:
template:
spec:
restartPolicy: Never
containers:
- name: discovery
image: {{ DOCKER_REGISTRY }}{{ DISCOVERY_DOCKER_IMAGE }}
env:
- name: DJANGO_SETTINGS_MODULE
value: course_discovery.settings.tutor.production
volumeMounts:
- mountPath: /openedx/discovery/course_discovery/settings/tutor/production.py
name: settings
subPath: production.py
volumes:
- name: settings
configMap:
name: discovery-settings