update
diff --git a/charts/app-runner/templates/install.yaml b/charts/app-runner/templates/install.yaml
index 4bff07e..f802f8d 100644
--- a/charts/app-runner/templates/install.yaml
+++ b/charts/app-runner/templates/install.yaml
@@ -16,6 +16,7 @@
run: |
{{ indent 4 $runCfg }}
---
+{{- if .Values.appPorts }}
apiVersion: v1
kind: Service
metadata:
@@ -26,10 +27,13 @@
selector:
app: app-app
ports:
- - name: app
- port: 80
- targetPort: app
- protocol: TCP
+ {{- range .Values.appPorts }}
+ - name: {{ .name }}
+ port: {{ .value }}
+ targetPort: {{ .name }}
+ protocol: {{ .protocol }}
+ {{- end }}
+{{- end }}
---
apiVersion: v1
kind: Service