Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: model-loader-service |
Mandeep Khinda | a71542f | 2017-08-25 03:31:17 +0000 | [diff] [blame^] | 5 | namespace: "{{ .Values.nsPrefix }}-aai" |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 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 | ], |
kerenj | 3db4be5 | 2017-08-24 11:32:22 +0000 | [diff] [blame] | 36 | "image": "{{ .Values.image.readiness }}", |
| 37 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | "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 Khinda | a71542f | 2017-08-25 03:31:17 +0000 | [diff] [blame^] | 59 | "value": "{{ .Values.nsPrefix }}-sdc" |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 60 | } |
| 61 | ], |
kerenj | 3db4be5 | 2017-08-24 11:32:22 +0000 | [diff] [blame] | 62 | "image": "{{ .Values.image.readiness }}", |
| 63 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 64 | "name": "model-loader-sdc-readiness" |
| 65 | } |
| 66 | ]' |
| 67 | spec: |
| 68 | containers: |
| 69 | - env: |
| 70 | - name: DISTR_CLIENT_ASDC_ADDRESS |
Mandeep Khinda | a71542f | 2017-08-25 03:31:17 +0000 | [diff] [blame^] | 71 | value: sdc-be.{{ .Values.nsPrefix }}-sdc:8443 |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 72 | - 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 Khinda | a71542f | 2017-08-25 03:31:17 +0000 | [diff] [blame^] | 79 | value: https://aai-service.{{ .Values.nsPrefix }}-aai:8443 |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 80 | - 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 |
kerenj | 3db4be5 | 2017-08-24 11:32:22 +0000 | [diff] [blame] | 86 | image: {{ .Values.image.modelLoader }} |
| 87 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 88 | 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 Glozman | fe6dd56 | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 98 | imagePullSecrets: |
Mandeep Khinda | a71542f | 2017-08-25 03:31:17 +0000 | [diff] [blame^] | 99 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |