vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 15 | #{{ if not .Values.disableSdcSdcEs }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | labels: |
| 20 | app: sdc-es |
| 21 | name: sdc-es |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 22 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 23 | spec: |
| 24 | selector: |
| 25 | matchLabels: |
| 26 | app: sdc-es |
| 27 | template: |
| 28 | metadata: |
| 29 | labels: |
| 30 | app: sdc-es |
| 31 | name: sdc-es |
| 32 | spec: |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 33 | initContainers: |
| 34 | - name: sdc-logs-init |
| 35 | image: {{ .Values.image.ubuntuInit }} |
| 36 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 37 | command: |
| 38 | - /bin/bash |
| 39 | - "-c" |
| 40 | - | |
| 41 | mkdir -p /ubuntu-init/ASDC/ASDC-ES/ |
| 42 | mkdir -p /ubuntu-init/ASDC/ASDC-CS/ |
| 43 | mkdir -p /ubuntu-init/ASDC/ASDC-KB/ |
| 44 | mkdir -p /ubuntu-init/ASDC/ASDC-BE/ |
| 45 | mkdir -p /ubuntu-init/ASDC/ASDC-FE/ |
| 46 | chmod -R 777 /ubuntu-init/ |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 47 | containers: |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 48 | - image: {{ .Values.image.sdcElasticsearch }} |
| 49 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 50 | name: sdc-es |
| 51 | env: |
| 52 | - name: ENVNAME |
| 53 | value: "AUTO" |
| 54 | - name: HOST_IP |
| 55 | valueFrom: |
| 56 | fieldRef: |
| 57 | fieldPath: status.podIP |
| 58 | - name: ES_HEAP_SIZE |
| 59 | value: "1024M" |
| 60 | volumeMounts: |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 61 | - name: sdc-logs |
| 62 | mountPath: /ubuntu-init/ |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 63 | - mountPath: /root/chef-solo/environments/ |
| 64 | name: sdc-environments |
| 65 | - mountPath: /etc/localtime |
| 66 | name: sdc-localtime |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 67 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 68 | - mountPath: /var/lib/jetty/logs |
| 69 | name: sdc-logs |
| 70 | ports: |
| 71 | - containerPort: 9200 |
| 72 | - containerPort: 9300 |
| 73 | readinessProbe: |
| 74 | tcpSocket: |
| 75 | port: 9200 |
| 76 | initialDelaySeconds: 5 |
| 77 | periodSeconds: 10 |
| 78 | volumes: |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 79 | - name: sdc-environments |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 80 | configMap : |
| 81 | name : sdc-environments-configmap |
| 82 | defaultMode: 0755 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 83 | - name: sdc-localtime |
| 84 | hostPath: |
| 85 | path: /etc/localtime |
| 86 | - name: sdc-logs |
| 87 | hostPath: |
kerenj | 390aec9 | 2018-02-25 13:57:36 +0000 | [diff] [blame] | 88 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 89 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 90 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
Munir Ahmad | 9d93201 | 2017-12-14 10:57:48 -0500 | [diff] [blame] | 91 | #{{ end }} |