blob: 580facdaa605b7b1ed4d4276dbd5a8f4c371ac29 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMsoMso }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: mso
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-mso"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 replicas: 1
9 selector:
10 matchLabels:
11 app: mso
12 template:
13 metadata:
14 labels:
15 app: mso
16 name: mso
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
kiranya09f7b382017-11-13 07:46:53 +000018 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - mariadb
24 env:
25 - name: NAMESPACE
26 valueFrom:
27 fieldRef:
28 apiVersion: v1
29 fieldPath: metadata.namespace
30 image: {{ .Values.image.readiness }}
31 imagePullPolicy: {{ .Values.pullPolicy }}
32 name: mso-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040033 containers:
34 - command:
Alexis de Talhouët91c77102017-09-26 10:29:32 -040035 - /tmp/start-jboss-server.sh
kerenj74d723a2017-08-22 15:27:04 +000036 image: {{ .Values.image.mso }}
37 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 name: mso
39 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030040 - mountPath: /etc/localtime
41 name: localtime
42 readOnly: true
mayankg2703f09949a2018-01-15 09:41:12 +000043 - mountPath: /shared/
Mandeep Khindad6ea9872017-06-24 11:49:37 -040044 name: mso
Alexis de Talhouët91c77102017-09-26 10:29:32 -040045 - mountPath: /tmp/start-jboss-server.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 name: mso-docker-files
mayankg2703f09949a2018-01-15 09:41:12 +000047 subPath: start-jboss-server.sh
yurynd0707be2017-09-27 14:54:18 +030048 - mountPath: /var/log/onap
49 name: mso-logs
yurynd0707be2017-09-27 14:54:18 +030050 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.network.xml
mayankg2703f09949a2018-01-15 09:41:12 +000051 name: mso-logback
52 subPath: logback.network.xml
yurynd0707be2017-09-27 14:54:18 +030053 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.tenant.xml
mayankg2703f09949a2018-01-15 09:41:12 +000054 name: mso-logback
55 subPath: logback.tenant.xml
yurynd0707be2017-09-27 14:54:18 +030056 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vnf.xml
mayankg2703f09949a2018-01-15 09:41:12 +000057 name: mso-logback
58 subPath: logback.vnf.xml
Alexis de Talhouët9a3b3f72017-11-27 14:54:47 -050059 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vfc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000060 name: mso-logback
61 subPath: logback.vfc.xml
62 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-api-handler-infra-config/logback.apihandler-infra.xml
63 name: mso-logback
64 subPath: logback.apihandler-infra.xml
yurynd0707be2017-09-27 14:54:18 +030065 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-appc-adapter-config/logback.appc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000066 name: mso-logback
67 subPath: logback.appc.xml
yurynd0707be2017-09-27 14:54:18 +030068 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-requests-db-adapter-config/logback.msorequestsdbadapter.xml
mayankg2703f09949a2018-01-15 09:41:12 +000069 name: mso-logback
70 subPath: logback.msorequestsdbadapter.xml
yurynd0707be2017-09-27 14:54:18 +030071 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-asdc-controller-config/logback.asdc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000072 name: mso-logback
73 subPath: logback.asdc.xml
yurynd0707be2017-09-27 14:54:18 +030074 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-sdnc-adapter-config/logback.sdnc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000075 name: mso-logback
76 subPath: logback.sdnc.xml
yurynd0707be2017-09-27 14:54:18 +030077 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-bpmn-config/logback.bpmn.xml
mayankg2703f09949a2018-01-15 09:41:12 +000078 name: mso-logback
79 subPath: logback.bpmn.xml
Alexis de Talhouët9a3b3f72017-11-27 14:54:47 -050080 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-workflow-message-adapter-config/logback.workflow-message-adapter.xml
mayankg2703f09949a2018-01-15 09:41:12 +000081 name: mso-logback
82 subPath: logback.workflow-message-adapter.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -040083 env:
84 - name: JBOSS_DEBUG
85 value: "false"
86 ports:
87 - containerPort: 3904
88 - containerPort: 3905
89 - containerPort: 8080
90 - containerPort: 9990
91 - containerPort: 8787
92 readinessProbe:
93 tcpSocket:
94 port: 8080
95 initialDelaySeconds: 5
96 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030097 - image: {{ .Values.image.filebeat }}
98 imagePullPolicy: {{ .Values.pullPolicy }}
99 name: filebeat-onap
100 volumeMounts:
101 - mountPath: /usr/share/filebeat/filebeat.yml
102 name: filebeat-conf
mayankg2703f09949a2018-01-15 09:41:12 +0000103 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +0300104 - mountPath: /var/log/onap
105 name: mso-logs
106 - mountPath: /usr/share/filebeat/data
107 name: mso-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400108 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +0300109 - name: localtime
110 hostPath:
111 path: /etc/localtime
mayankg2703f09949a2018-01-15 09:41:12 +0000112 - name: mso-logback
113 configMap:
114 name: mso-log-configmap
yurynd0707be2017-09-27 14:54:18 +0300115 - name: filebeat-conf
mayankg2703f09949a2018-01-15 09:41:12 +0000116 configMap:
117 name: mso-filebeat-configmap
118 - name: mso
119 configMap:
120 name: mso-config-mso-configmap
121 items:
122 - key: mso-docker.json
123 path: mso-docker.json
124 mode: 0755
125 - key: aai.crt
126 path: aai.crt
127 mode: 0755
128 - key: encryption.key
129 path: encryption.key
130 mode: 0644
yurynd0707be2017-09-27 14:54:18 +0300131 - name: mso-logs
132 emptyDir: {}
133 - name: mso-data-filebeat
134 emptyDir: {}
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400135 - name: mso-docker-files
mayankg2703f09949a2018-01-15 09:41:12 +0000136 configMap:
137 name: mso-docker-file-configmap
138 items:
139 - key: start-jboss-server.sh
140 path: start-jboss-server.sh
141 mode: 0755
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300142 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000143 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya09f7b382017-11-13 07:46:53 +0000144#{{ end }}