summaryrefslogtreecommitdiff
path: root/charts/deckhand/templates/service.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'charts/deckhand/templates/service.yaml')
-rw-r--r--charts/deckhand/templates/service.yaml16
1 files changed, 8 insertions, 8 deletions
diff --git a/charts/deckhand/templates/service.yaml b/charts/deckhand/templates/service.yaml
index 14c9560..1259849 100644
--- a/charts/deckhand/templates/service.yaml
+++ b/charts/deckhand/templates/service.yaml
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
14limitations under the License. 14limitations under the License.
15*/}} 15*/}}
16 16
17{{- if .Values.manifests.service }} 17{{- if .Values.manifests.service_api }}
18{{- $envAll := . }} 18{{- $envAll := . }}
19--- 19---
20apiVersion: v1 20apiVersion: v1
@@ -23,21 +23,21 @@ metadata:
23 name: {{ tuple "deckhand" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} 23 name: {{ tuple "deckhand" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
24spec: 24spec:
25 ports: 25 ports:
26 {{ if .Values.network.enable_node_port }} 26 {{ if .Values.network.api.node_port.enabled }}
27 - name: http 27 - name: http
28 nodePort: {{ .Values.network.node_port }} 28 nodePort: {{ .Values.network.api.node_port }}
29 port: {{ .Values.network.port }} 29 port: {{ .Values.network.api.port }}
30 protocol: TCP 30 protocol: TCP
31 targetPort: {{ .Values.network.port }} 31 targetPort: {{ .Values.network.api.port }}
32 {{ else }} 32 {{ else }}
33 - name: http 33 - name: http
34 port: {{ .Values.network.port }} 34 port: {{ tuple "deckhand" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
35 protocol: TCP 35 protocol: TCP
36 targetPort: {{ .Values.network.port }} 36 targetPort: {{ .Values.network.api.port }}
37 {{ end }} 37 {{ end }}
38 selector: 38 selector:
39{{ tuple $envAll "deckhand" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} 39{{ tuple $envAll "deckhand" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
40 {{ if .Values.network.enable_node_port }} 40 {{ if .Values.network.api.enable_node_port }}
41 type: NodePort 41 type: NodePort
42 {{ end }} 42 {{ end }}
43{{- end }} 43{{- end }}