Fix label and name reference in charts
[nonrtric.git] / sample-services / hello-world-sme-invoker / hello-world-sme-invoker / templates / deployment.yaml
1 # -
2 #   ========================LICENSE_START=================================
3 #   O-RAN-SC
4 #   %%
5 #   Copyright (C) 2024: OpenInfra Foundation Europe
6 #   %%
7 #   Licensed under the Apache License, Version 2.0 (the "License");
8 #   you may not use this file except in compliance with the License.
9 #   You may obtain a copy of the License at
10 #
11 #        http://www.apache.org/licenses/LICENSE-2.0
12 #
13 #   Unless required by applicable law or agreed to in writing, software
14 #   distributed under the License is distributed on an "AS IS" BASIS,
15 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 #   See the License for the specific language governing permissions and
17 #   limitations under the License.
18 #   ========================LICENSE_END===================================
19 #
20
21 apiVersion: apps/v1
22 kind: Deployment
23 metadata:
24   name: hello-world-sme-invoker-deployment
25 spec:
26   replicas: {{ .Values.replicaCount }}
27   selector:
28     matchLabels:
29       app: hello-world-sme-invoker-container
30   template:
31     metadata:
32       labels:
33         app: hello-world-sme-invoker-container
34     spec:
35       containers:
36         - name: {{ .Chart.Name }}
37           image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
38           env:
39             - name: RAPP_INSTANCE_ID
40               value: "{{ .Values.environment.RAPP_INSTANCE_ID }}"
41             - name: SME_DISCOVERY_ENDPOINT
42               value: "{{ .Values.environment.SME_DISCOVERY_ENDPOINT }}"
43           ports:
44             - name: http
45               containerPort: {{ .Values.service.port }}
46