diff options
author | 2021-04-08 14:49:47 +0200 | |
---|---|---|
committer | 2021-05-07 05:10:51 +0000 | |
commit | 27854663cf92a8bda121d76d29d45f39f88bc376 (patch) | |
tree | 457e195a3f574ca8cd7f89fc5093ecc68c8f0ad7 /kubernetes/sdnc/templates/service.yaml | |
parent | ea66314be24fda8601b1e3933046fc7654d4fe6e (diff) |
[SDNC] Support CallHome
Expose netconf callHome port as node port
Issue-ID: OOM-2721
Signed-off-by: demskeq8 <alexander.dehn@highstreet-technologies.com>
Change-Id: I0b4205755a9e9e66fc23b4e1dc6cabe985bc859e
Diffstat (limited to 'kubernetes/sdnc/templates/service.yaml')
-rw-r--r-- | kubernetes/sdnc/templates/service.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/kubernetes/sdnc/templates/service.yaml b/kubernetes/sdnc/templates/service.yaml index e3be4bc46a..693ef41af6 100644 --- a/kubernetes/sdnc/templates/service.yaml +++ b/kubernetes/sdnc/templates/service.yaml @@ -174,3 +174,27 @@ spec: selector: statefulset.kubernetes.io/pod-name: {{ include "common.fullname" . }}-2 {{ end }} + +{{ if .Values.config.sdnr.netconfCallHome.enabled }} +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ include "common.servicename" . }}-callhome + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.name" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ include "common.release" . }} + heritage: {{ .Release.Service }} +spec: + type: NodePort + ports: + - name: "{{ .Values.service.portName }}-callhome" + port: {{ .Values.service.callHomePort }} + targetPort: {{ .Values.service.callHomePort }} + nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.callHomeNodePort }} + selector: + app.kubernetes.io/name: {{ include "common.name" . }} + app.kubernetes.io/instance: {{ include "common.release" . }} +{{ end }} |