X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Fcapifcore%2Ftemplates%2Fservice.yaml;fp=nonrtric%2Fhelm%2Fcapifcore%2Ftemplates%2Fservice.yaml;h=568264c64c635a2f5b005ae3339c22c0a63e30c5;hb=41f01080ed18db53fe75ffea1be444084e8a4d15;hp=0000000000000000000000000000000000000000;hpb=f97b292fa01903c18b71ec8a549824c7ec3bea93;p=it%2Fdep.git diff --git a/nonrtric/helm/capifcore/templates/service.yaml b/nonrtric/helm/capifcore/templates/service.yaml new file mode 100644 index 00000000..568264c6 --- /dev/null +++ b/nonrtric/helm/capifcore/templates/service.yaml @@ -0,0 +1,38 @@ +################################################################################ +# Copyright (c) 2022 Nordix Foundation. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ + +kind: Service +apiVersion: v1 +metadata: + name: {{ include "common.name.capifcore" . }} + namespace: {{ include "common.namespace.nonrtric" . }} + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.capifcore" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + ports: + {{if eq .Values.capifcore.service.allowHttp true -}} + - name: {{ index .Values.capifcore.service.httpName }} + port: {{ .Values.capifcore.service.port }} + targetPort: {{ .Values.capifcore.service.targetPort }} + protocol: TCP + {{- end }} + selector: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.capifcore" . }} + release: {{ .Release.Name }} + type: ClusterIP