| commit | f3486a55c4832c4d2644e10ef1241d4a387e104e | [log] [tgz] |
|---|---|---|
| author | gio <gio@v1.dodo.cloud> | Tue Oct 29 23:38:18 2024 +0400 |
| committer | gio <gio@v1.dodo.cloud> | Wed Oct 30 08:11:47 2024 +0400 |
| tree | eadd1f5a8f0fcf029f4fb227e67ad4f0775c5a28 | |
| parent | 88d3766ff683db399a277162ec97017c6188dffa [diff] |
DodoApp: Expose same app ports on VM as well Change-Id: I5d04330ffc7c23443c1305ece5201e3f59fb91d4
diff --git a/charts/virtual-machine/templates/service.yaml b/charts/virtual-machine/templates/service.yaml index b79b385..9af7476 100644 --- a/charts/virtual-machine/templates/service.yaml +++ b/charts/virtual-machine/templates/service.yaml
@@ -7,4 +7,9 @@ selector: app: {{ .Values.name }} ports: - {{- toYaml .Values.servicePorts | nindent 4 }} + {{- range .Values.ports }} + - name: {{ .name }} + port: {{ .value }} + targetPort: {{ .name }} + protocol: {{ .protocol }} + {{- end }}
diff --git a/charts/virtual-machine/templates/vm.yaml b/charts/virtual-machine/templates/vm.yaml index 40c4a34..3a0a446 100644 --- a/charts/virtual-machine/templates/vm.yaml +++ b/charts/virtual-machine/templates/vm.yaml
@@ -25,9 +25,11 @@ # masquerade: {} bridge: {} ports: - {{- range .Values.ports }} - - port: {{ . }} - {{- end }} + {{- range .Values.ports }} + - name: {{ .name }} + port: {{ .value }} + protocol: {{ .protocol }} + {{- end }} disks: - name: disk0 disk: