7ee7f384a129f58a23a05434d236c8168b3908b2
[it/dep.git] / smo-install / tests_oom / ran-nssmf-simulator / templates / deployment.yaml
1 # ============LICENSE_START=======================================================
2 # Copyright © 2022 AT&T Intellectual Property
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 # Static Defaults
16 # ============LICENSE_END=========================================================
17 apiVersion: apps/v1
18 kind: Deployment
19 metadata:
20   name: "{{ $.Values.config.name }}"
21   labels:
22     sim-name: "{{ $.Values.config.name }}"
23     release: {{ $.Release.Name }}
24     chart: {{ $.Chart.Name }}
25 spec:
26   replicas: 1
27   selector:
28     matchLabels:
29       sim-name: "{{ $.Values.config.name }}"
30   template:
31     metadata:
32       labels:
33         sim-name: "{{ $.Values.config.name }}"
34         release: {{ $.Release.Name }}
35         chart: {{ $.Chart.Name }}
36       annotations:
37         checksum/config: {{ print .Values | sha256sum }}
38     spec:
39       hostname: "{{ $.Values.config.name }}"
40       containers:
41         - name: {{ $.Chart.Name }}
42           image: "{{ $.Values.image.repository }}/{{ $.Values.image.name}}:{{ $.Values.image.tag }}"
43           imagePullPolicy: {{ $.Values.image.pullPolicy }}
44           tty: true
45           stdin: true