Improve oran_oom helm charts
[it/dep.git] / smo-install / oran_oom / topology / templates / deployment.yaml
1 # Copyright © 2021-2022 AT&T Intellectual Property
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 apiVersion: apps/v1
16 kind: Deployment
17 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
18 spec:
19   replicas: {{ .Values.replicaCount }}
20   selector: {{- include "common.selectors" . | nindent 4 }}
21   template:
22     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
23     spec:
24       containers:
25         - name: {{ include "common.containername" . }}
26           image: "{{ .Values.image.repository }}/{{ .Values.image.name}}:{{ .Values.image.tag }}"
27           imagePullPolicy: {{ .Values.image.pullPolicy }}
28           tty: true
29           stdin: true
30           envFrom:
31             - configMapRef:
32                 name: {{ include "common.name" . }}-configmapenv
33           securityContext:
34             capabilities:
35               add:
36                 - SYS_ADMIN
37                 - SYS_PTRACE