################################################################################
# Copyright (c) 2019 AT&T Intellectual Property. #
-# Copyright (c) 2019 Nokia. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# limitations under the License. #
################################################################################
+---
apiVersion: v1
kind: Service
metadata:
- name: {{ include "ricxapp.servicename.http" . }}
- namespace: {{ include "ricxapp.namespace" . }}
+ name: {{ template "fullname" . }}
labels:
- app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
- chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
- release: {{ .Release.Name }}
+ app: {{ .Chart.Name }}
+ release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service }}
+{{- with .Values.service.annotations }}
+ annotations:
+{{ toYaml . | indent 4 }}
+{{- end }}
spec:
- type: ClusterIP
+ type: {{ .Values.service.type }}
ports:
- - port: {{ .Values.ricxapp.service.http.port }}
- targetPort: http
+ - port: {{ .Values.service.port }}
+{{- if .Values.service.nodePort }}
+ nodePort: {{ .Values.service.nodePort }}
+{{- end }}
protocol: TCP
name: http
+ targetPort: {{ .Values.httpPort }}
selector:
- app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
- release: {{ .Release.Name }}
+ app: {{ .Chart.Name }}
+ release: {{ .Release.Name | quote }}