
Change-Id: Ia640c46d97ced49674ae475b86a833f34f3503ee downgrade helm version and do playbook Change-Id: Id451effe1286742e5e17e1a85c3627f6429905ac paste post and get Change-Id: I7ad6f974a4dc9eb7a9c002efb13f776dab852c46
25 lines
625 B
YAML
25 lines
625 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "lodgeit.fullname" . }}
|
|
labels:
|
|
{{- include "lodgeit.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
name: http
|
|
{{ if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
|
|
nodePort: {{.Values.service.nodePort}}
|
|
{{ end }}
|
|
|
|
{{- if .Values.service.externalIPs }}
|
|
externalIPs:
|
|
{{ toYaml .Values.service.externalIPs | indent 4 }}
|
|
{{- end }}
|
|
|
|
selector:
|
|
{{- include "lodgeit.selectorLabels" . | nindent 4 }}
|