summaryrefslogtreecommitdiffstats
path: root/kubernetes/so/components/so-monitoring/templates/service.yaml
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-10-29 19:01:15 +0000
committerGerrit Code Review <gerrit@onap.org>2020-10-29 19:01:15 +0000
commit0096ca03c48a0d2aa01a239080ca6d224bea7eca (patch)
tree7b163a2fa2f6d17954298d040144e22f74e4172e /kubernetes/so/components/so-monitoring/templates/service.yaml
parent5e8fceac9dd7be2eb33ddcc49490501588efdfe0 (diff)
parentcd2e66f770d8778dbd5c95a73fa810b9ee0ee779 (diff)
Merge "[SO] Enable SO-Monitoring - use HTTPS and certInitializer"
Diffstat (limited to 'kubernetes/so/components/so-monitoring/templates/service.yaml')
-rw-r--r--kubernetes/so/components/so-monitoring/templates/service.yaml7
1 files changed, 6 insertions, 1 deletions
diff --git a/kubernetes/so/components/so-monitoring/templates/service.yaml b/kubernetes/so/components/so-monitoring/templates/service.yaml
index 58aeea3377..c4439784ca 100644
--- a/kubernetes/so/components/so-monitoring/templates/service.yaml
+++ b/kubernetes/so/components/so-monitoring/templates/service.yaml
@@ -1,6 +1,7 @@
{{/*
# ============LICENSE_START=======================================================
# Copyright (C) 2018 Ericsson. All rights reserved.
+# Modifications © 2020 Nokia
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -29,9 +30,13 @@ metadata:
release: {{ include "common.release" . }}
heritage: {{ .Release.Service }}
spec:
+ {{if .Values.global.aafEnabled -}}
type: {{ .Values.service.type }}
+ {{- else -}}
+ type: ClusterIP
+ {{- end }}
ports:
- {{if eq .Values.service.type "NodePort" -}}
+ {{if and (eq .Values.service.type "NodePort") (.Values.global.aafEnabled) -}}
- port: {{ .Values.service.internalPort }}
nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
name: {{ .Values.service.portName }}