Fixed yaml syntax error
This commit is contained in:
parent
6043696e24
commit
20c05929dd
2 changed files with 4 additions and 19 deletions
|
|
@ -24,4 +24,4 @@ questions:
|
||||||
default: "ClusterIP"
|
default: "ClusterIP"
|
||||||
enum:
|
enum:
|
||||||
- value: "ClusterIP"
|
- value: "ClusterIP"
|
||||||
description: "NodePort Mode"
|
description: "ClusterIP Mode"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -5,27 +6,11 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "vp-web.labels" . | nindent 4 }}
|
{{- include "vp-web.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
{{- include "vp-web.selectorLabels" . | nindent 4 }}
|
{{- include "vp-web.selectorLabels" . | nindent 4 }}
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
nodePort: {{ .Values.service.port }}
|
nodePort: {{ .Values.service.port }}
|
||||||
type: {{ .Values.service.type }}
|
type: {{ .Values.service.type }}
|
||||||
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: {{ include "vp-web.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "vp-web.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
type: {{ .Values.service.type }}
|
|
||||||
ports:
|
|
||||||
- port: {{ .Values.service.port }}
|
|
||||||
targetPort: http
|
|
||||||
protocol: TCP
|
|
||||||
name: http
|
|
||||||
selector:
|
|
||||||
{{- include "vp-web.selectorLabels" . | nindent 4 }}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue