blob: 9d64333353d78cb149977289b1af9443a431ef4d [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: soft-serve
namespace: {{ .Release.Namespace }}
{{ if eq .Values.serviceType "LoadBalancer" }}
annotations:
{{ if .Values.reservedIP }}
metallb.universe.tf/loadBalancerIPs: {{ .Values.reservedIP }}
{{ end }}
{{ if .Values.addressPool }}
metallb.universe.tf/address-pool: {{ .Values.addressPool }}
{{ end }}
{{ end }}
spec:
type: {{ .Values.serviceType }}
selector:
app: soft-serve
ports:
- name: ssh
port: {{ .Values.sshPort }}
protocol: TCP
- name: http
port: {{ .Values.httpPort }}
targetPort: http
protocol: TCP