diff options
author | 2018-02-09 00:08:52 +0200 | |
---|---|---|
committer | 2018-02-15 17:39:55 +0000 | |
commit | eeec504fb7251cc282482d505fcf35ae3e7097f2 (patch) | |
tree | 6fa62a661f75f13c3d0e1a96b539288a615a5e55 /sdc-os-chef/kubernetes/sdc/templates/deployments/sdc-cs.yaml | |
parent | c1e4dcf4a8030bbcf04f487fd7a6a910bb5eced1 (diff) |
Add K8S deployment above Vagrant
Set deployment manifest files and scripts
for deploy SDC over Kubernetes inside
Vagrant
Preparation for OOM integration
Change-Id: If5d6b4131b75eb4795ce8bfd8ec228808938d40e
Issue-ID: SDC-907
Signed-off-by: Areli Fuss <af732p@att.com>
Diffstat (limited to 'sdc-os-chef/kubernetes/sdc/templates/deployments/sdc-cs.yaml')
-rw-r--r-- | sdc-os-chef/kubernetes/sdc/templates/deployments/sdc-cs.yaml | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/sdc-os-chef/kubernetes/sdc/templates/deployments/sdc-cs.yaml b/sdc-os-chef/kubernetes/sdc/templates/deployments/sdc-cs.yaml index 64d18370e8..906b7c6663 100644 --- a/sdc-os-chef/kubernetes/sdc/templates/deployments/sdc-cs.yaml +++ b/sdc-os-chef/kubernetes/sdc/templates/deployments/sdc-cs.yaml @@ -28,22 +28,23 @@ spec: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - image: {{ .Values.image.readiness }} - imagePullPolicy: {{ .Values.pullPolicy }} + image: "{{ .Values.image.readiness }}" + imagePullPolicy: "{{ .Values.pullPolicy }}" name: sdc-cs-readiness containers: - name: sdc-cs - image: {{ .Values.image.sdcCassandra }} - imagePullPolicy: {{ .Values.pullPolicy }} + image: "{{ .Values.image.sdcCassandra }}" + imagePullPolicy: "{{ .Values.pullPolicy }}" + # run cs & wait forever + command: ["/root/startup.sh"] + args: [ "/bin/sh", "-c" , "while true; do sleep 30; done;" ] env: - name: ENVNAME - value: AUTO + value: "{{ .Values.env.name }}" - name: HOST_IP valueFrom: fieldRef: fieldPath: status.podIP - - name: ES_HEAP_SIZE - value: "1024M" - name: CS_PASSWORD valueFrom: secretKeyRef: {name: sdc-cs-secret, key: cs_password} @@ -63,10 +64,8 @@ spec: readinessProbe: exec: command: - - /bin/sh - - -c - - /var/lib/ready/probe.sh - initialDelaySeconds: 30 + - "/var/lib/ready-probe.sh" + initialDelaySeconds: 60 periodSeconds: 10 volumes: - name: sdc-sdc-cs-cs |