minor corrections
This commit is contained in:
@@ -5,9 +5,9 @@ metadata:
|
||||
name: "{{ .Values.name }}-service"
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
{{- if .Values.service.app.type "LoadBalancer" }}
|
||||
{{- if eq .Values.service.app.type "LoadBalancer" }}
|
||||
type: LoadBalancer
|
||||
{{- else if .Values.service.app.type "NodePort" }}
|
||||
{{- else if eq .Values.service.app.type "NodePort" }}
|
||||
type: NodePort
|
||||
{{- end }}
|
||||
selector:
|
||||
@@ -15,9 +15,9 @@ spec:
|
||||
ports:
|
||||
- targetPort: 3000
|
||||
protocol: TCP
|
||||
{{- if .Values.service.app.type "LoadBalancer" }}
|
||||
{{- if eq .Values.service.app.type "LoadBalancer" }}
|
||||
port: {{ .Values.service.app.port }}
|
||||
{{- else if .Values.service.app.type "NodePort" }}
|
||||
{{- else if eq .Values.service.app.type "NodePort" }}
|
||||
nodePort: {{ .Values.service.app.nodePort }}
|
||||
{{- end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user