oecis-charts/charts/tandoor/templates/service.yaml

34 lines
932 B
YAML
Raw Normal View History

2023-08-27 13:38:38 +00:00
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 }}