Files
bot_Tamiseur/deploy/templates/service.yaml
Zachary Guénot 1dcb8c6826
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2m23s
Fix run dockerfile & service
2025-06-10 14:56:29 +02:00

15 lines
466 B
YAML

{{- if .Values.service.enabled }}
apiVersion: v1
kind: Service
metadata:
name: "{{ .Release.Name }}-{{ .Values.service.name }}"
spec:
selector:
pod: {{ .Release.Name }}
ports:
- name: {{ .Values.service.name }}
port: {{ .Values.deployment.env.TWURPLE_PORT | default .Values.service.port }}
targetPort: {{ .Values.deployment.env.TWURPLE_PORT | default .Values.service.port }}
protocol: TCP
type: {{ .Values.service.type }}
{{- end }}