Improve oran_oom helm charts
[it/dep.git] / smo-install / oran_oom / rappcatalogueservice / templates / deployment.yaml
1 ################################################################################
2 #   Copyright (c) 2020 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: {{- include "common.resourceMetadata" . | nindent 2 }}
20 spec:
21   replicas: 1
22   selector: {{- include "common.selectors" . | nindent 4 }}
23   template:
24     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
25     spec:
26       hostname: {{ include "common.name" . }}
27       containers:
28       - name: {{ include "common.containername" . }}
29         image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
30         imagePullPolicy: {{ .Values.imagePullPolicy }}
31         ports: {{- include "common.containerPorts" . | nindent 8 }}
32         {{- include "common.tcpsocketProbes" . | nindent 8 }}