initial commit
This commit is contained in:
19
helm/templates/service.yaml
Normal file
19
helm/templates/service.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "heart.fullname" . }}
|
||||
labels:
|
||||
{{- include "heart.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: {{ .Values.service.port }}
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
name: http
|
||||
{{- if and .Values.service.nodePort (eq "NodePort" .Values.service.type) }}
|
||||
nodePort: {{ .Values.service.nodePort }}
|
||||
{{- end }}
|
||||
selector:
|
||||
{{- include "heart.selectorLabels" . | nindent 4 }}
|
Reference in New Issue
Block a user