charts: softserve support network, ingress with source port, keyless
diff --git a/charts/soft-serve/templates/service.yaml b/charts/soft-serve/templates/service.yaml
index c1e3326..13c3f52 100644
--- a/charts/soft-serve/templates/service.yaml
+++ b/charts/soft-serve/templates/service.yaml
@@ -4,7 +4,12 @@
name: soft-serve
namespace: {{ .Release.Namespace }}
annotations:
+ {{ if .Values.reservedIP }}
metallb.universe.tf/loadBalancerIPs: {{ .Values.reservedIP }}
+ {{ end }}
+ {{ if .Values.addressPool }}
+ metallb.universe.tf/address-pool: {{ .Values.addressPool }}
+ {{ end }}
spec:
type: LoadBalancer
selector:
@@ -13,3 +18,9 @@
- name: ssh
port: {{ .Values.port }}
protocol: TCP
+ {{ if .Values.ingress.enabled }}
+ - name: http
+ port: 80
+ targetPort: http
+ protocol: TCP
+ {{ end }}