c09c19c8924da8d6ef6df5af3b25a7b47f3fee7f
[nonrtric/plt/ranpm.git] / install / helm / nonrtricgateway / templates / deployment.yaml
1 ################################################################################
2 #   Copyright (c) 2023 Nordix Foundation.                                      #
3 #                                                                              #
4 #   Licensed under the Apache License, Version 2.0 (the "License");            #
5 #   you may not use this file except in compliance with the License.           #
6 #   You may obtain a copy of the License at                                    #
7 #                                                                              #
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #
9 #                                                                              #
10 #   Unless required by applicable law or agreed to in writing, software        #
11 #   distributed under the License is distributed on an "AS IS" BASIS,          #
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
13 #   See the License for the specific language governing permissions and        #
14 #   limitations under the License.                                             #
15 ################################################################################
16
17 kind: Deployment
18 apiVersion: apps/v1
19 metadata:
20   name: nonrtricgateway
21   namespace: nonrtric
22   labels:
23     app: nonrtric-nonrtricgateway
24 spec:
25   replicas: 1
26   selector:
27     matchLabels:
28       app: nonrtric-nonrtricgateway
29   template:
30     metadata:
31       labels:
32         app: nonrtric-nonrtricgateway
33     spec:
34       containers:
35       - name: nonrtric-nonrtricgateway
36         image: "{{ .Values.nonrtricgateway.image.registry }}/{{ .Values.nonrtricgateway.image.name }}:{{ .Values.nonrtricgateway.image.tag }}"
37         imagePullPolicy: {{ .Values.nonrtricgateway.imagePullPolicy }}
38         ports:
39         - containerPort: {{ .Values.nonrtricgateway.service.targetPort1 }}
40           protocol: TCP
41         readinessProbe:
42           tcpSocket:
43             port: {{ .Values.nonrtricgateway.service.targetPort1 }}
44           initialDelaySeconds: {{ .Values.nonrtricgateway.readiness.initialDelaySeconds }} # changed from liveness
45           periodSeconds: {{ .Values.nonrtricgateway.readiness.periodSeconds }}
46         livenessProbe:
47           tcpSocket:
48             port: {{ .Values.nonrtricgateway.service.targetPort1 }}
49           initialDelaySeconds: {{ .Values.nonrtricgateway.liveness.initialDelaySeconds }}
50           periodSeconds: {{ .Values.nonrtricgateway.liveness.periodSeconds }}
51         volumeMounts:
52         - name: nonrtricgateway-config
53           mountPath: /opt/app/nonrtric-gateway/config
54       volumes:
55         - name: nonrtricgateway-config
56           configMap:
57             name: nonrtricgateway-configmap