blob: 7eacf7c1c893966c8def105c9fce7d2539b69bad [file] [log] [blame]
Mandeep Khinda71439a72017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: model-loader-service
5spec:
6 selector:
7 matchLabels:
8 app: model-loader-service
9 template:
10 metadata:
11 labels:
12 app: model-loader-service
13 name: model-loader-service
14 annotations:
15 pod.beta.kubernetes.io/init-containers: '[
16 {
17 "args": [
18 "--container-name",
19 "aai-service"
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": "model-loader-readiness"
38 },
39 {
40 "args": [
41 "--container-name",
42 "sdc-es",
43 "--container-name",
44 "sdc-cs",
45 "--container-name",
46 "sdc-kb",
47 "--container-name",
48 "sdc-be",
49 "--container-name",
50 "sdc-fe"
51 ],
52 "command": [
53 "/root/ready.py"
54 ],
55 "env": [
56 {
57 "name": "NAMESPACE",
58 "value": "onap-sdc"
59 }
60 ],
61 "image": "oomk8s/readiness-check:1.0.0",
62 "imagePullPolicy": "Always",
63 "name": "model-loader-sdc-readiness"
64 }
65 ]'
66 spec:
67 containers:
68 - env:
69 - name: DISTR_CLIENT_ASDC_ADDRESS
70 value: sdc-be.onap-sdc:8443
71 - name: DISTR_CLIENT_ENVIRONMENT_NAME
72 value: AUTO
73 - name: DISTR_CLIENT_USER
74 value: aai
75 - name: DISTR_CLIENT_PASSWORD
76 value: OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp
77 - name: APP_SERVER_BASE_URL
78 value: https://aai-service.onap-aai:8443
79 - name: APP_SERVER_KEYSTORE_PASSWORD
80 value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
81 - name: APP_SERVER_AUTH_USER
82 value: ModelLoader
83 - name: APP_SERVER_AUTH_PASSWORD
84 value: OBF:1qvu1v2h1sov1sar1wfw1j7j1wg21saj1sov1v1x1qxw
85 image: nexus3.onap.org:10001/openecomp/model-loader:1.0-STAGING-latest
86 name: model-loader-service
87 ports:
88 - containerPort: 8080
89 - containerPort: 8443
90 readinessProbe:
91 tcpSocket:
92 port: 8080
93 initialDelaySeconds: 5
94 periodSeconds: 10
95 restartPolicy: Always