k8s/charts/templates/service.yaml
Simple_Not 15e823bf30
All checks were successful
continuous-integration/drone/push Build is passing
test helm
2023-06-19 21:57:53 +10:00

12 lines
341 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-service
spec:
selector:
app.kubernetes.io/instance: {{ .Release.Name }}
type: {{ .Values.service.type }}
ports:
- protocol: {{ .Values.service.protocol | default "TCP" }}
port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort }}