aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/charts/pap/templates/service.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-05-26 06:53:10 +0000
committerGerrit Code Review <gerrit@onap.org>2020-05-26 06:53:10 +0000
commit5cb53f1343db7f33c9df88ebbc6496603b273769 (patch)
treeaa5c89760ca4c8b7fc8c523b90356cad7bbf249e /kubernetes/policy/charts/pap/templates/service.yaml
parentc63a63d8f9dcd2450bae261355e91f4b173322a7 (diff)
parentade49400588823a2f43ac82b4c2457438d6308fb (diff)
Merge "Make Policy PAP exposition configurable" into frankfurt
Diffstat (limited to 'kubernetes/policy/charts/pap/templates/service.yaml')
-rw-r--r--kubernetes/policy/charts/pap/templates/service.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/kubernetes/policy/charts/pap/templates/service.yaml b/kubernetes/policy/charts/pap/templates/service.yaml
index a23352a17e..b6deb5c75e 100644
--- a/kubernetes/policy/charts/pap/templates/service.yaml
+++ b/kubernetes/policy/charts/pap/templates/service.yaml
@@ -1,6 +1,7 @@
# ============LICENSE_START=======================================================
# Copyright (C) 2019 Nordix Foundation.
# Modifications Copyright (C) 2019 AT&T Intellectual Property.
+# Modifications Copyright (C) 2020 Bell Canada.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -28,10 +29,17 @@ metadata:
release: {{ include "common.release" . }}
heritage: {{ .Release.Service }}
spec:
+ type: {{ .Values.service.type }}
ports:
+ {{if eq .Values.service.type "NodePort" -}}
+ - port: {{ .Values.service.internalPort }}
+ nodePort: {{ .Values.global.nodePortPrefixExt | default .Values.nodePortPrefixExt }}{{ .Values.service.nodePort }}
+ name: {{ .Values.service.portName }}
+ {{- else -}}
- port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
name: {{ .Values.service.portName }}
+ {{- end}}
selector:
app: {{ include "common.name" . }}
release: {{ include "common.release" . }}