templates/service.yaml を追加
This commit is contained in:
15
templates/service.yaml
Normal file
15
templates/service.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ include "{{ .Chart.Name }}.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "{{ .Chart.Name }}.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
type: {{ .Values.service.type }}
|
||||||
|
ports:
|
||||||
|
- port: {{ .Values.service.port }}
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
selector:
|
||||||
|
{{- include "{{ .Chart.Name }}.selectorLabels" . | nindent 4 }}
|
||||||
Reference in New Issue
Block a user