blob: f7d855bbf978a36bcefec27b9190ba78a54124ee [file] [log] [blame]
Mandeep Khinda71439a72017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: model-loader-service
Mandeep Khindaa71542f2017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-aai"
Mandeep Khinda71439a72017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: model-loader-service
10 template:
11 metadata:
12 labels:
13 app: model-loader-service
14 name: model-loader-service
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "aai-service"
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 ],
kerenj3db4be52017-08-24 11:32:22 +000036 "image": "{{ .Values.image.readiness }}",
37 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khinda71439a72017-06-24 11:49:37 -040038 "name": "model-loader-readiness"
39 },
40 {
41 "args": [
42 "--container-name",
43 "sdc-es",
44 "--container-name",
45 "sdc-cs",
46 "--container-name",
47 "sdc-kb",
48 "--container-name",
49 "sdc-be",
50 "--container-name",
51 "sdc-fe"
52 ],
53 "command": [
54 "/root/ready.py"
55 ],
56 "env": [
57 {
58 "name": "NAMESPACE",
Mandeep Khindaa71542f2017-08-25 03:31:17 +000059 "value": "{{ .Values.nsPrefix }}-sdc"
Mandeep Khinda71439a72017-06-24 11:49:37 -040060 }
61 ],
kerenj3db4be52017-08-24 11:32:22 +000062 "image": "{{ .Values.image.readiness }}",
63 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khinda71439a72017-06-24 11:49:37 -040064 "name": "model-loader-sdc-readiness"
65 }
66 ]'
67 spec:
68 containers:
69 - env:
70 - name: DISTR_CLIENT_ASDC_ADDRESS
Mandeep Khindaa71542f2017-08-25 03:31:17 +000071 value: sdc-be.{{ .Values.nsPrefix }}-sdc:8443
Mandeep Khinda71439a72017-06-24 11:49:37 -040072 - name: DISTR_CLIENT_ENVIRONMENT_NAME
73 value: AUTO
74 - name: DISTR_CLIENT_USER
75 value: aai
76 - name: DISTR_CLIENT_PASSWORD
77 value: OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp
78 - name: APP_SERVER_BASE_URL
Mandeep Khindaa71542f2017-08-25 03:31:17 +000079 value: https://aai-service.{{ .Values.nsPrefix }}-aai:8443
Mandeep Khinda71439a72017-06-24 11:49:37 -040080 - name: APP_SERVER_KEYSTORE_PASSWORD
81 value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
82 - name: APP_SERVER_AUTH_USER
83 value: ModelLoader
84 - name: APP_SERVER_AUTH_PASSWORD
85 value: OBF:1qvu1v2h1sov1sar1wfw1j7j1wg21saj1sov1v1x1qxw
kerenj3db4be52017-08-24 11:32:22 +000086 image: {{ .Values.image.modelLoader }}
87 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khinda71439a72017-06-24 11:49:37 -040088 name: model-loader-service
89 ports:
90 - containerPort: 8080
91 - containerPort: 8443
92 readinessProbe:
93 tcpSocket:
94 port: 8080
95 initialDelaySeconds: 5
96 periodSeconds: 10
97 restartPolicy: Always
Borislav Glozmanfe6dd562017-07-24 10:45:28 +030098 imagePullSecrets:
Mandeep Khindaa71542f2017-08-25 03:31:17 +000099 - name: "{{ .Values.nsPrefix }}-docker-registry-key"