Align nonrtric products to release f
[it/dep.git] / nonrtric / helm / orufhrecovery / templates / deployment.yaml
diff --git a/nonrtric/helm/orufhrecovery/templates/deployment.yaml b/nonrtric/helm/orufhrecovery/templates/deployment.yaml
new file mode 100644 (file)
index 0000000..0d97555
--- /dev/null
@@ -0,0 +1,78 @@
+################################################################################
+#   Copyright (c) 2021 Nordix Foundation.                                      #
+#                                                                              #
+#   Licensed under the Apache License, Version 2.0 (the "License");            #
+#   you may not use this file except in compliance with the License.           #
+#   You may obtain a copy of the License at                                    #
+#                                                                              #
+#       http://www.apache.org/licenses/LICENSE-2.0                             #
+#                                                                              #
+#   Unless required by applicable law or agreed to in writing, software        #
+#   distributed under the License is distributed on an "AS IS" BASIS,          #
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
+#   See the License for the specific language governing permissions and        #
+#   limitations under the License.                                             #
+################################################################################
+
+kind: Deployment
+apiVersion: apps/v1
+metadata:
+  name: {{ include "common.name.orufhrecovery" . }}
+  namespace: {{ include "common.namespace.nonrtric" . }}
+  generation: 1
+  labels:
+    app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.orufhrecovery" . }}
+    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+    release: {{ .Release.Name }}
+    heritage: {{ .Release.Service }}
+  annotations:
+    deployment.kubernetes.io/revision: '1'
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.orufhrecovery" . }}
+      release: {{ .Release.Name }}
+  template:
+    metadata:
+      labels:
+        app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.orufhrecovery" . }}
+        release: {{ .Release.Name }}
+    spec:
+      hostname: {{ include "common.name.orufhrecovery" . }}
+      containers:
+      - name: {{ include "common.container.orufhrecovery" . }}
+        image: {{ .Values.orufhrecovery.image.registry }}/{{ .Values.orufhrecovery.image.name }}:{{ .Values.orufhrecovery.image.tag }}
+        imagePullPolicy: {{ .Values.orufhrecovery.imagePullPolicy }}
+        ports:
+        - containerPort: 80
+          protocol: TCP
+        env:
+          - name: CONSUMER_HOST
+            value: "{{ .Values.orufhrecovery.env.consumer_host }}"
+          - name: CONSUMER_PORT
+            value: "{{ .Values.orufhrecovery.env.consumer_port }}"
+          - name: CONSUMER_CERT_PATH
+            value: "{{ .Values.orufhrecovery.env.consumer_cert_path }}"
+          - name: CONSUMER_KEY_PATH
+            value: "{{ .Values.orufhrecovery.env.consumer_key_path }}"
+          - name: INFO_COORD_ADDR
+            value: "{{ .Values.orufhrecovery.env.info_coord_addr }}"
+          - name: SDNR_ADDR
+            value: "{{ .Values.orufhrecovery.env.sdnr_address }}"
+          - name: SDNR_USER
+            value: "{{ .Values.orufhrecovery.env.sdnr_user }}"
+          - name: SDNR_PASSWORD
+            value: "{{ .Values.orufhrecovery.env.sdnr_password }}"
+          - name: ORU_TO_ODU_MAP_FILE
+            value: "{{ .Values.orufhrecovery.env.oru_to_odu_map_file }}"
+          - name: LOG_LEVEL
+            value: "{{ .Values.orufhrecovery.env.log_level }}"
+        volumeMounts:
+        - name: {{ include "common.name.orufhrecovery" . }}-oru-config
+          mountPath: "/app/o-ru-to-o-du-map.csv"
+          subPath: "o-ru-to-o-du-map.csv"
+      volumes:
+        - name: {{ include "common.name.orufhrecovery" . }}-oru-config
+          configMap:
+            name: {{ include "common.name.orufhrecovery" . }}-configmap-config