Update base image to redis:5.0.9-alpine3.11 and builder images
[ric-plt/dbaas.git] / charts / dbaas-service / templates / deployment.yaml
1 #   Copyright (c) 2019 AT&T Intellectual Property.
2 #   Copyright (c) 2019 Nokia.
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 #   This source code is part of the near-RT RIC (RAN Intelligent Controller)
18 #   platform project (RICP).
19 #
20
21 apiVersion: apps/v1
22 kind: Deployment
23 metadata:
24   name: {{ .Values.backend.name }}
25 spec:
26   replicas: {{ .Values.backend.replicas }}
27   selector:
28     matchLabels:
29       app: {{ .Values.backend.name }}
30   template:
31     metadata:
32       labels:
33         app: {{ .Values.backend.name }}
34     spec:
35       terminationGracePeriodSeconds: {{ .Values.backend.terminationGracePeriodSeconds }}
36       containers:
37       - image: {{ .Values.backend.image.name }}:{{ .Values.backend.image.tag }}
38         imagePullPolicy: {{ .Values.backend.image.imagePullPolicy }}
39         ports:
40         - containerPort: {{ .Values.backend.targetPort }}
41         name: {{ .Values.backend.name }}
42       restartPolicy: Always