onap on kubernetes source files
[oom.git] / kubernetes / appc / appc-deployment.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: appc
5 spec:
6   selector:
7     matchLabels:
8       app: appc
9   template:
10     metadata:
11       labels:
12         app: appc
13       name: appc
14       annotations:
15         pod.beta.kubernetes.io/init-containers: '[
16           {
17               "args": [
18                   "--container-name",
19                   "appc-db-container"
20               ],
21               "command": [
22                   "/root/ready.py"
23               ],
24               "env": [
25                   {
26                       "name": "NAMESPACE",
27                       "valueFrom": {
28                           "fieldRef": {
29                               "apiVersion": "v1",
30                               "fieldPath": "metadata.namespace"
31                           }
32                       }
33                   }
34               ],
35               "image": "oomk8s/readiness-check:1.0.0",
36               "imagePullPolicy": "Always",
37               "name": "appc-readiness"
38           }
39           ]'
40     spec:
41       containers:
42       - command:
43         - /opt/openecomp/appc/bin/startODL.sh
44         env:
45         - name: MYSQL_ROOT_PASSWORD
46           value: openECOMP1.0
47         - name: SDNC_CONFIG_DIR
48           value: /opt/openecomp/sdnc/data/properties
49         - name: APPC_CONFIG_DIR
50           value: /opt/openecomp/appc/data/properties
51         - name: DMAAP_TOPIC_ENV
52           value: SUCCESS
53         image: nexus3.onap.org:10001/openecomp/appc-image:1.0-STAGING-latest
54         name: appc-controller-container
55         volumeMounts:
56         - mountPath: /opt/openecomp/appc/data/properties
57           name: appc-conf
58         - mountPath: /opt/openecomp/sdnc/data/properties
59           name: sdnc-conf
60         ports:
61         - containerPort: 8181
62         - containerPort: 1830
63         readinessProbe:
64           tcpSocket:
65             port: 8181
66           initialDelaySeconds: 5
67           periodSeconds: 10
68       volumes:
69         - name: appc-conf
70           hostPath:
71             path: /dockerdata-nfs/onapdemo/appc/conf
72         - name: sdnc-conf
73           hostPath:
74             path: /dockerdata-nfs/onapdemo/sdnc/conf