blob: 2e5497c22c65e1f60eb61aaaebd6af1dd7c57cff [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
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
vaibhav_16dec263ff0e2018-02-13 07:23:07 +00008 replicas: {{ .Values.msoReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 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
BorislavG8bfc6cf2018-02-27 15:04:26 +000023 - mso-mariadb
kiranya09f7b382017-11-13 07:46:53 +000024 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
BorislavG8bfc6cf2018-02-27 15:04:26 +000048 - mountPath: /opt/jboss/standalone/configuration/standalone-full-ha-mso.xml
49 name: mso-jboss-config
50 subPath: standalone-full-ha-mso.xml
yurynd0707be2017-09-27 14:54:18 +030051 - mountPath: /var/log/onap
52 name: mso-logs
yurynd0707be2017-09-27 14:54:18 +030053 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.network.xml
mayankg2703f09949a2018-01-15 09:41:12 +000054 name: mso-logback
55 subPath: logback.network.xml
yurynd0707be2017-09-27 14:54:18 +030056 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.tenant.xml
mayankg2703f09949a2018-01-15 09:41:12 +000057 name: mso-logback
58 subPath: logback.tenant.xml
yurynd0707be2017-09-27 14:54:18 +030059 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vnf.xml
mayankg2703f09949a2018-01-15 09:41:12 +000060 name: mso-logback
61 subPath: logback.vnf.xml
Alexis de Talhouët9a3b3f72017-11-27 14:54:47 -050062 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vfc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000063 name: mso-logback
64 subPath: logback.vfc.xml
65 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-api-handler-infra-config/logback.apihandler-infra.xml
66 name: mso-logback
67 subPath: logback.apihandler-infra.xml
yurynd0707be2017-09-27 14:54:18 +030068 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-appc-adapter-config/logback.appc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000069 name: mso-logback
70 subPath: logback.appc.xml
yurynd0707be2017-09-27 14:54:18 +030071 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-requests-db-adapter-config/logback.msorequestsdbadapter.xml
mayankg2703f09949a2018-01-15 09:41:12 +000072 name: mso-logback
73 subPath: logback.msorequestsdbadapter.xml
yurynd0707be2017-09-27 14:54:18 +030074 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-asdc-controller-config/logback.asdc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000075 name: mso-logback
76 subPath: logback.asdc.xml
yurynd0707be2017-09-27 14:54:18 +030077 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-sdnc-adapter-config/logback.sdnc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000078 name: mso-logback
79 subPath: logback.sdnc.xml
yurynd0707be2017-09-27 14:54:18 +030080 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-bpmn-config/logback.bpmn.xml
mayankg2703f09949a2018-01-15 09:41:12 +000081 name: mso-logback
82 subPath: logback.bpmn.xml
Alexis de Talhouët9a3b3f72017-11-27 14:54:47 -050083 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-workflow-message-adapter-config/logback.workflow-message-adapter.xml
mayankg2703f09949a2018-01-15 09:41:12 +000084 name: mso-logback
85 subPath: logback.workflow-message-adapter.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -040086 env:
87 - name: JBOSS_DEBUG
88 value: "false"
89 ports:
90 - containerPort: 3904
91 - containerPort: 3905
92 - containerPort: 8080
93 - containerPort: 9990
94 - containerPort: 8787
95 readinessProbe:
96 tcpSocket:
97 port: 8080
98 initialDelaySeconds: 5
99 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +0300100 - image: {{ .Values.image.filebeat }}
101 imagePullPolicy: {{ .Values.pullPolicy }}
102 name: filebeat-onap
103 volumeMounts:
104 - mountPath: /usr/share/filebeat/filebeat.yml
105 name: filebeat-conf
mayankg2703f09949a2018-01-15 09:41:12 +0000106 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +0300107 - mountPath: /var/log/onap
108 name: mso-logs
109 - mountPath: /usr/share/filebeat/data
110 name: mso-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400111 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +0300112 - name: localtime
113 hostPath:
114 path: /etc/localtime
mayankg2703f09949a2018-01-15 09:41:12 +0000115 - name: mso-logback
116 configMap:
117 name: mso-log-configmap
yurynd0707be2017-09-27 14:54:18 +0300118 - name: filebeat-conf
mayankg2703f09949a2018-01-15 09:41:12 +0000119 configMap:
120 name: mso-filebeat-configmap
121 - name: mso
122 configMap:
123 name: mso-config-mso-configmap
124 items:
125 - key: mso-docker.json
126 path: mso-docker.json
127 mode: 0755
128 - key: aai.crt
129 path: aai.crt
130 mode: 0755
131 - key: encryption.key
132 path: encryption.key
133 mode: 0644
yurynd0707be2017-09-27 14:54:18 +0300134 - name: mso-logs
135 emptyDir: {}
136 - name: mso-data-filebeat
137 emptyDir: {}
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400138 - name: mso-docker-files
mayankg2703f09949a2018-01-15 09:41:12 +0000139 configMap:
140 name: mso-docker-file-configmap
141 items:
142 - key: start-jboss-server.sh
143 path: start-jboss-server.sh
144 mode: 0755
BorislavG8bfc6cf2018-02-27 15:04:26 +0000145 - name: mso-jboss-config
146 configMap:
147 name: mso-jboss-configmap
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300148 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000149 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya09f7b382017-11-13 07:46:53 +0000150#{{ end }}