7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-05-29 20:30:48 +00:00
tutor/tutor/templates/k8s/services.yml
Régis Behmo 84f2060d33 Working Kubernetes quickstart
The k8s quickstart command is now functional, with suppport for https,
xqueue, notes and minio. There are still a few bugs to get rid of,
though.
2019-06-17 22:38:55 +02:00

165 lines
2.4 KiB
YAML

---
apiVersion: v1
kind: Service
metadata:
name: cms
spec:
type: NodePort
ports:
- port: 8000
protocol: TCP
selector:
app.kubernetes.io/name: cms
{% if ACTIVATE_FORUM %}
---
apiVersion: v1
kind: Service
metadata:
name: forum
spec:
type: NodePort
ports:
- port: 4567
protocol: TCP
selector:
app.kubernetes.io/name: forum
{% endif %}
---
apiVersion: v1
kind: Service
metadata:
name: lms
spec:
type: NodePort
ports:
- port: 8000
protocol: TCP
selector:
app.kubernetes.io/name: lms
{% if ACTIVATE_ELASTICSEARCH %}
---
apiVersion: v1
kind: Service
metadata:
name: elasticsearch
spec:
type: NodePort
ports:
- port: 9200
protocol: TCP
selector:
app.kubernetes.io/name: elasticsearch
{% endif %}
{% if ACTIVATE_MEMCACHED %}
---
apiVersion: v1
kind: Service
metadata:
name: memcached
spec:
type: NodePort
ports:
- port: 11211
protocol: TCP
selector:
app.kubernetes.io/name: memcached
{% endif %}
{% if ACTIVATE_MONGODB %}
---
apiVersion: v1
kind: Service
metadata:
name: mongodb
spec:
type: NodePort
ports:
- port: 27017
protocol: TCP
selector:
app.kubernetes.io/name: mongodb
{% endif %}
{% if ACTIVATE_MYSQL %}
---
apiVersion: v1
kind: Service
metadata:
name: mysql
spec:
type: NodePort
ports:
- port: 3306
protocol: TCP
selector:
app.kubernetes.io/name: mysql
{% endif %}
---
apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
type: NodePort
ports:
- port: 80
name: http
- port: 443
name: https
selector:
app.kubernetes.io/name: nginx
{% if ACTIVATE_FORUM %}
---
apiVersion: v1
kind: Service
metadata:
name: notes
spec:
type: NodePort
ports:
- port: 8000
protocol: TCP
selector:
app.kubernetes.io/name: notes
{% endif %}
{% if ACTIVATE_RABBITMQ %}
---
apiVersion: v1
kind: Service
metadata:
name: rabbitmq
spec:
type: NodePort
ports:
- port: 5672
protocol: TCP
selector:
app.kubernetes.io/name: rabbitmq
{% endif %}
{% if ACTIVATE_SMTP %}
---
apiVersion: v1
kind: Service
metadata:
name: smtp
spec:
type: NodePort
ports:
- port: 25
protocol: TCP
selector:
app.kubernetes.io/name: smtp
{% endif %}
{% if ACTIVATE_XQUEUE %}
---
apiVersion: v1
kind: Service
metadata:
name: xqueue
spec:
type: NodePort
ports:
- port: 8040
protocol: TCP
selector:
app.kubernetes.io/name: xqueue
{% endif %}
{{ patch("k8s-services") }}