mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-18 11:05:17 +00:00
3b7c1c25c5
This deployment of Kubernetes does not support all features. Close #116.
20 lines
460 B
YAML
20 lines
460 B
YAML
apiVersion: extensions/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: web
|
|
spec:
|
|
rules:
|
|
{% set hosts = [LMS_HOST, "preview." + LMS_HOST, CMS_HOST] %}
|
|
{% if ACTIVATE_NOTES %}{% set hosts = hosts + ["notes." + LMS_HOST] %}{% endif %}
|
|
{% for host in hosts %}
|
|
- host: {{ host }}
|
|
http:
|
|
paths:
|
|
- backend:
|
|
serviceName: nginx
|
|
servicePort: 80
|
|
- backend:
|
|
serviceName: nginx
|
|
servicePort: 443
|
|
{% endfor %}
|