Files
PinePods-nix/PinePods-0.8.2/deployment/kubernetes/helm/pinepods/templates/service.yaml
2026-03-03 10:57:43 -05:00

18 lines
533 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "pinepods.fullname" . }}
labels:
{{- include "pinepods.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.port }}
{{- if and (eq .Values.service.type "NodePort") .Values.service.nodePort }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
selector:
{{- include "pinepods.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: main