onap on kubernetes source files
[oom.git] / kubernetes / policy / dep-nexus.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: nexus
5 spec:
6   selector:
7     matchLabels:
8       app: nexus
9   template:
10     metadata:
11       labels:
12         app: nexus
13       name: nexus
14       annotations:
15         pod.beta.kubernetes.io/init-containers: '[
16           {
17               "args": [
18                   "--container-name",
19                   "mariadb"
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": "nexus-readiness"
38           }
39           ]'
40     spec:
41       containers:
42       - command:
43         - /bin/bash
44         - -c
45         - bash -c "/opt/nexus/nexus-2.14.2-01/bin/nexus start && sleep 1000d"
46         image: nexus3.onap.org:10001/openecomp/policy/policy-nexus:1.0-STAGING-latest
47         name: nexus