mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-05-30 04:40:49 +00:00
728ef966dc
- 💥[Improvement] Upgrade Open edX to Koa - 💥 Setting changes: - The ``ACTIVATE_HTTPS`` setting was renamed to ``ENABLE_HTTPS``. - Other ``ACTIVATE_*`` variables were all renamed to ``RUN_*``. - The ``WEB_PROXY`` setting was removed and ``RUN_CADDY`` was added. - The ``NGINX_HTTPS_PORT`` setting is deprecated. - Architectural changes: - Use Caddy as a web proxy for automated SSL/TLS certificate generation: - Nginx no longer listens to port 443 for https traffic - The Caddy configuration file comes with a new ``caddyfile`` patch for much simpler SSL/TLS management. - Configuration files for web proxies are no longer provided. - Kubernetes deployment no longer requires setting up a custom Ingress resource or custom manager. - Gunicorn and Whitenoise are replaced by uwsgi: this increases boostrap performance and makes it no longer necessary to mount media folders in the Nginx container. - Replace memcached and rabbitmq by redis. - Additional features: - Make it possible to disable all plugins at once with ``plugins disable all``. - Add ``tutor k8s wait`` command to wait for a pod to become ready - Faster, more reliable static assets with local memory caching - Deprecation: proxy files for Apache and Nginx are no longer provided out of the box. - Removed plugin `{{ patch (...) }}` statements: - "https-create", "k8s-ingress-rules", "k8s-ingress-tls-hosts": these are no longer necessary. Instead, declare your app in the "caddyfile" patch. - "local-docker-compose-nginx-volumes": this patch was primarily used to serve media assets. The recommended is now to serve assets with uwsgi.
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
---
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
- k8s/namespace.yml
|
|
- k8s/deployments.yml
|
|
- k8s/jobs.yml
|
|
- k8s/services.yml
|
|
- k8s/volumes.yml
|
|
{{ patch("kustomization-resources") }}
|
|
|
|
# namespace to deploy all Resources to
|
|
namespace: {{ K8S_NAMESPACE }}
|
|
|
|
# labels added to all Resources
|
|
# https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/
|
|
commonLabels:
|
|
app.kubernetes.io/instance: openedx-{{ ID }}
|
|
app.kubernetes.io/version: {{ TUTOR_VERSION }}
|
|
app.kubernetes.io/part-of: openedx
|
|
app.kubernetes.io/managed-by: tutor
|
|
{{ patch("kustomization-commonlabels")|indent(2) }}
|
|
|
|
configMapGenerator:
|
|
- name: caddy-config
|
|
files:
|
|
- apps/caddy/Caddyfile
|
|
- name: openedx-settings-lms
|
|
files:{% for file in "apps/openedx/settings/lms"|walk_templates %}
|
|
- {{ file }}{% endfor %}
|
|
- name: openedx-settings-cms
|
|
files:{% for file in "apps/openedx/settings/cms"|walk_templates %}
|
|
- {{ file }}{% endfor %}
|
|
- name: openedx-config
|
|
files:{% for file in "apps/openedx/config"|walk_templates %}
|
|
- {{ file }}{% endfor %}
|
|
- name: nginx-config
|
|
files:{% for file in "apps/nginx"|walk_templates %}
|
|
- {{ file }}{% endfor %}
|
|
- name: redis-config
|
|
files:
|
|
- apps/redis/redis.conf
|
|
{{ patch("kustomization-configmapgenerator") }}
|
|
|
|
{{ patch("kustomization") }} |