Create service.yaml
This commit is contained in:
committed by
GitHub
parent
74de9573bd
commit
c8089c75b3
15
helm-chart/templates/service.yaml
Normal file
15
helm-chart/templates/service.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}-helm
|
||||||
|
labels:
|
||||||
|
{{- include "random-shapes.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
type: {{ .Values.service.type }}
|
||||||
|
ports:
|
||||||
|
- port: {{ .Values.service.port }}
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
selector:
|
||||||
|
{{- include "random-shapes.selectorLabels" . | nindent 4 }}
|
||||||
Reference in New Issue
Block a user