blob: fb052df7340e3cb57dfdbb5cfdb0f23cb174c16b [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: mso
5spec:
6 replicas: 1
7 selector:
8 matchLabels:
9 app: mso
10 template:
11 metadata:
12 labels:
13 app: mso
14 name: mso
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "mariadb"
21 ],
22 "command": [
23 "/root/ready.py"
24 ],
25 "env": [
26 {
27 "name": "NAMESPACE",
28 "valueFrom": {
29 "fieldRef": {
30 "apiVersion": "v1",
31 "fieldPath": "metadata.namespace"
32 }
33 }
34 }
35 ],
36 "image": "oomk8s/readiness-check:1.0.0",
37 "imagePullPolicy": "Always",
38 "name": "mso-readiness"
39 }
40 ]'
41 spec:
42 containers:
43 - command:
44 - /docker-files/scripts/start-jboss-server.sh
45 image: nexus3.onap.org:10001/openecomp/mso:1.0-STAGING-latest
46 name: mso
47 volumeMounts:
48 - mountPath: /shared
49 name: mso
50 - mountPath: /docker-files
51 name: mso-docker-files
52 env:
53 - name: JBOSS_DEBUG
54 value: "false"
55 ports:
56 - containerPort: 3904
57 - containerPort: 3905
58 - containerPort: 8080
59 - containerPort: 9990
60 - containerPort: 8787
61 readinessProbe:
62 tcpSocket:
63 port: 8080
64 initialDelaySeconds: 5
65 periodSeconds: 10
66 volumes:
67 - name: mso
68 hostPath:
69 path: /dockerdata-nfs/onapdemo/mso/mso
70 - name: mso-docker-files
71 hostPath:
72 path: /dockerdata-nfs/onapdemo/mso/docker-files
Borislav Glozman5197e2e2017-07-24 10:45:28 +030073 imagePullSecrets:
74 - name: onap-docker-registry-key