Compatibility with newer job-running scheme on k8s
This commit is contained in:
parent
13d654d02f
commit
75fd6228dd
@ -1 +1 @@
|
||||
__version__ = "0.1.14"
|
||||
__version__ = "0.1.15"
|
||||
|
||||
@ -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 }}
|
||||
26
tutordiscovery/patches/k8s-jobs
Normal file
26
tutordiscovery/patches/k8s-jobs
Normal 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user