oecis-charts/charts/tandoor/templates/service.yaml
2023-08-27 15:38:50 +02:00

34 lines
932 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "tandoor.fullname" . }}-gunicorn
namespace: {{ include "tandoor.namespace" . }}
labels:
{{- include "tandoor.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.gunicorn.type }}
ports:
- port: {{ .Values.service.gunicorn.port }}
targetPort: gunicorn
protocol: TCP
name: {{ .Values.service.gunicorn.name }}
selector:
{{- include "tandoor.selectorLabels" . | nindent 4 }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "tandoor.fullname" . }}-nginx
namespace: {{ include "tandoor.namespace" . }}
labels:
{{- include "tandoor.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.nginx.type }}
ports:
- port: {{ .Values.service.nginx.port }}
targetPort: http
protocol: TCP
name: {{ .Values.service.nginx.name }}
selector:
{{- include "tandoor.selectorLabels" . | nindent 4 }}