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.disableSdcSdcCs }} |
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-cs |
| 21 | name: sdc-cs |
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-cs |
| 27 | template: |
| 28 | metadata: |
| 29 | labels: |
| 30 | app: sdc-cs |
| 31 | name: sdc-cs |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 32 | spec: |
vasundhra | 98960b6 | 2017-11-22 12:43:29 +0000 | [diff] [blame] | 33 | initContainers: |
| 34 | - command: |
| 35 | - /root/ready.py |
| 36 | args: |
| 37 | - --container-name |
| 38 | - sdc-es |
| 39 | env: |
| 40 | - name: NAMESPACE |
| 41 | valueFrom: |
| 42 | fieldRef: |
| 43 | apiVersion: v1 |
| 44 | fieldPath: metadata.namespace |
| 45 | image: {{ .Values.image.readiness }} |
| 46 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 47 | name: sdc-cs-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 48 | containers: |
| 49 | - env: |
| 50 | - name: ENVNAME |
| 51 | value: AUTO |
| 52 | - name: HOST_IP |
| 53 | valueFrom: |
| 54 | fieldRef: |
| 55 | fieldPath: status.podIP |
| 56 | - name: ES_HEAP_SIZE |
| 57 | value: "1024M" |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 58 | image: {{ .Values.image.sdcCassandra }} |
| 59 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 60 | name: sdc-cs |
| 61 | volumeMounts: |
| 62 | - mountPath: /var/lib/cassandra/ |
| 63 | name: sdc-sdc-cs-cs |
| 64 | - mountPath: /root/chef-solo/environments/ |
| 65 | name: sdc-environments |
| 66 | - mountPath: /etc/localtime |
| 67 | name: sdc-localtime |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 68 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 69 | - mountPath: /var/lib/jetty/logs |
| 70 | name: sdc-logs |
| 71 | ports: |
| 72 | - containerPort: 9042 |
| 73 | - containerPort: 9160 |
| 74 | readinessProbe: |
| 75 | tcpSocket: |
| 76 | port: 9160 |
| 77 | initialDelaySeconds: 5 |
| 78 | periodSeconds: 10 |
| 79 | volumes: |
| 80 | - name: sdc-sdc-cs-cs |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 81 | persistentVolumeClaim: |
| 82 | claimName: sdc-cs-db |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 83 | - name: sdc-environments |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 84 | configMap: |
| 85 | name : sdc-environments-configmap |
| 86 | defaultMode: 0755 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 87 | - name: sdc-localtime |
| 88 | hostPath: |
| 89 | path: /etc/localtime |
| 90 | - name: sdc-logs |
| 91 | hostPath: |
kerenj | 390aec9 | 2018-02-25 13:57:36 +0000 | [diff] [blame] | 92 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 93 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 94 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vasundhra | 98960b6 | 2017-11-22 12:43:29 +0000 | [diff] [blame] | 95 | #{{ end }} |