diff --git a/heat/templates/service-api.yaml b/heat/templates/service-api.yaml index 72301389..efde9ca0 100644 --- a/heat/templates/service-api.yaml +++ b/heat/templates/service-api.yaml @@ -19,5 +19,12 @@ metadata: spec: ports: - port: {{ .Values.network.api.port }} + {{ if .Values.network.api.node_port.enabled }} + nodePort: {{ .Values.network.api.node_port.port }} + {{ end }} selector: app: heat-api + {{ if .Values.network.api.node_port.enabled }} + type: NodePort + {{ end }} + \ No newline at end of file diff --git a/heat/templates/service-cfn.yaml b/heat/templates/service-cfn.yaml index 84c20a6f..2620d07a 100644 --- a/heat/templates/service-cfn.yaml +++ b/heat/templates/service-cfn.yaml @@ -19,5 +19,12 @@ metadata: spec: ports: - port: {{ .Values.network.cfn.port }} + {{ if .Values.network.cfn.node_port.enabled }} + nodePort: {{ .Values.network.cfn.node_port.port }} + {{ end }} selector: app: heat-cfn + {{ if .Values.network.cfn.node_port.enabled }} + type: NodePort + {{ end }} + \ No newline at end of file diff --git a/heat/templates/service-cloudwatch.yaml b/heat/templates/service-cloudwatch.yaml index a1fb726f..8f2c75dd 100644 --- a/heat/templates/service-cloudwatch.yaml +++ b/heat/templates/service-cloudwatch.yaml @@ -19,5 +19,12 @@ metadata: spec: ports: - port: {{ .Values.network.cloudwatch.port }} + {{ if .Values.network.cloudwatch.node_port.enabled }} + nodePort: {{ .Values.network.cloudwatch.node_port.port }} + {{ end }} selector: app: heat-cloudwatch + {{ if .Values.network.cloudwatch.node_port.enabled }} + type: NodePort + {{ end }} + \ No newline at end of file diff --git a/heat/values.yaml b/heat/values.yaml index f7c40038..61ff920e 100644 --- a/heat/values.yaml +++ b/heat/values.yaml @@ -82,14 +82,23 @@ network: name: "heat-api" port: 8004 proto: "http" + node_port: + enabled: false + port: 30004 cfn: name: "heat-cfn" port: 8000 proto: "http" + node_port: + enabled: false + port: 30800 cloudwatch: name: "heat-cloudwatch" port: 8003 proto: "http" + node_port: + enabled: false + port: 30003 database: address: mariadb