New version of the common template. It unifies the naming convention between platform...
[it/dep.git] / ric-xapps / 90-xApps / helm / xapp-std / templates / service-rmr.yaml
 #   See the License for the specific language governing permissions and        #
 #   limitations under the License.                                             #
 ################################################################################
+
 apiVersion: v1
-kind: Secret
+kind: Service
 metadata:
-  name: {{ .Release.Name }}-docker-registry-key
-data:
-  .dockercfg: {{ include "repository.secret" . }}
-type: kubernetes.io/dockercfg
+  name: {{ include "ricxapp.servicename.rmr" . }}
+  namespace: {{ include "ricxapp.namespace" . }}
+  labels:
+    app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
+    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+    release: {{ .Release.Name }}
+    heritage: {{ .Release.Service }}
+spec:
+  type: ClusterIP
+  ports:
+    - port: {{ .Values.ricxapp.service.rmr.port }}
+      targetPort: rmr
+      protocol: TCP
+      name: rmr
+  selector:
+    app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
+    release: {{ .Release.Name }}