mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-05-28 11:50:49 +00:00
137 lines
2.0 KiB
YAML
137 lines
2.0 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_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 %}
|
|
{{ patch("k8s-services") }} |