Skip to content
Snippets Groups Projects
Commit 4bfd3c79 authored by Matteo Di Carlo's avatar Matteo Di Carlo
Browse files

Merge branch 'add-kubectl-wait' into 'master'

Add retry

See merge request ska-telescope/ska-docker!46
parents 27c557b0 509adce9
No related branches found
No related tags found
No related merge requests found
...@@ -102,8 +102,8 @@ wait:## wait for pods to be ready ...@@ -102,8 +102,8 @@ wait:## wait for pods to be ready
@echo "Waiting for pods to be ready" @echo "Waiting for pods to be ready"
@date @date
@kubectl -n $(KUBE_NAMESPACE) get pods @kubectl -n $(KUBE_NAMESPACE) get pods
@jobs=$$(kubectl get job --output=jsonpath={.items..metadata.name} -n $(KUBE_NAMESPACE)); kubectl wait job --for=condition=complete --timeout=120s $$jobs -n $(KUBE_NAMESPACE) @jobs=$$(kubectl get job --output=jsonpath={.items..metadata.name} -n $(KUBE_NAMESPACE)); kubectl wait job --for=condition=complete --timeout=300s $$jobs -n $(KUBE_NAMESPACE)
@kubectl -n $(KUBE_NAMESPACE) wait --for=condition=ready -l app=ska-docker --timeout=120s pods || exit 1 @kubectl -n $(KUBE_NAMESPACE) wait --for=condition=ready -l app=ska-docker --timeout=300s pods || exit 1
@date @date
# #
......
...@@ -2,12 +2,12 @@ apiVersion: v2 ...@@ -2,12 +2,12 @@ apiVersion: v2
appVersion: "1.0" appVersion: "1.0"
description: A Helm chart for deploying the HDB++ archiver for the MVP on Kubernetes description: A Helm chart for deploying the HDB++ archiver for the MVP on Kubernetes
name: archiver name: archiver
version: 0.2.9 version: 0.2.10
appVersion: 1.16.0 appVersion: 1.16.0
icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png
dependencies: dependencies:
- name: tango-util - name: tango-util
version: 0.2.6 version: 0.2.7
repository: file://../tango-util repository: file://../tango-util
# The archiver cannot have the tango-base since we allow only one level in the chart hierarchies # The archiver cannot have the tango-base since we allow only one level in the chart hierarchies
# - name: tango-base # - name: tango-base
......
...@@ -94,7 +94,7 @@ hdbppdb: ...@@ -94,7 +94,7 @@ hdbppdb:
failureThreshold: 3 failureThreshold: 3
deviceServers: deviceServers:
- name: arhiver-cm-archiver-test - name: archiver-cm-archiver-test
function: tango-archiver-service function: tango-archiver-service
domain: archiver domain: archiver
command: "./usr/local/bin/hdbppcm-srv" command: "./usr/local/bin/hdbppcm-srv"
...@@ -119,7 +119,7 @@ deviceServers: ...@@ -119,7 +119,7 @@ deviceServers:
cpu: 200m # 200m = 0.2 CPU cpu: 200m # 200m = 0.2 CPU
memory: 256Mi # 256Mi = 0.25 GB mem memory: 256Mi # 256Mi = 0.25 GB mem
ephemeral-storage: 1Gi ephemeral-storage: 1Gi
- name: arhiver-es-archiver-test - name: archiver-es-archiver-test
function: tango-archiver-service function: tango-archiver-service
domain: archiver domain: archiver
command: "./usr/local/bin/hdbppes-srv" command: "./usr/local/bin/hdbppes-srv"
......
...@@ -2,14 +2,14 @@ apiVersion: v2 ...@@ -2,14 +2,14 @@ apiVersion: v2
appVersion: "1.0" appVersion: "1.0"
description: A Helm chart for deploying the TANGO base system on Kubernetes description: A Helm chart for deploying the TANGO base system on Kubernetes
name: ska-docker name: ska-docker
version: 0.1.8 version: 0.1.9
icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png
dependencies: dependencies:
- name: tango-base - name: tango-base
version: 0.2.9 version: 0.2.10
repository: file://../tango-base repository: file://../tango-base
condition: tango-base.enabled,global.sub-system.tango-base.enabled condition: tango-base.enabled,global.sub-system.tango-base.enabled
- name: archiver - name: archiver
version: 0.2.9 version: 0.2.10
repository: file://../archiver repository: file://../archiver
condition: archiver.enabled,global.sub-system.archiver.enabled condition: archiver.enabled,global.sub-system.archiver.enabled
...@@ -2,9 +2,9 @@ apiVersion: v2 ...@@ -2,9 +2,9 @@ apiVersion: v2
appVersion: "1.0" appVersion: "1.0"
description: A Helm chart for deploying the TANGO base system on Kubernetes description: A Helm chart for deploying the TANGO base system on Kubernetes
name: tango-base name: tango-base
version: 0.2.9 version: 0.2.10
icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png
dependencies: dependencies:
- name: tango-util - name: tango-util
version: 0.2.6 version: 0.2.7
repository: file://../tango-util repository: file://../tango-util
...@@ -2,8 +2,8 @@ apiVersion: v2 ...@@ -2,8 +2,8 @@ apiVersion: v2
description: A Helm chart library of utilities for TANGO deployents description: A Helm chart library of utilities for TANGO deployents
name: tango-util name: tango-util
type: library type: library
appVersion: 0.2.6 appVersion: 0.2.7
version: 0.2.6 version: 0.2.7
icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png
maintainers: maintainers:
- name: Matteo Di Carlo - name: Matteo Di Carlo
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{{ $dsconfig := coalesce .local.Values.global.dsconfig .local.Values.dsconfig}} {{ $dsconfig := coalesce .local.Values.global.dsconfig .local.Values.dsconfig}}
{{ $chart := .local }} {{ $chart := .local }}
{{ $safe_instance := .instance |toString | replace "_" "-" }} {{ $safe_instance := .instance |toString | replace "_" "-" }}
---
# Device Server Service # Device Server Service
# Parameter: deviceserver struct, global.Values.dsconfig struct, project image struct # Parameter: deviceserver struct, global.Values.dsconfig struct, project image struct
# giving a dummy Service entry ensures that the single pod is DNS addressable # giving a dummy Service entry ensures that the single pod is DNS addressable
...@@ -118,7 +118,7 @@ spec: ...@@ -118,7 +118,7 @@ spec:
- sh - sh
- -c - -c
args: args:
- {{ .deviceserver.command | toString }} {{ .instance |toString }} - retry --max=10 -- {{ .deviceserver.command | toString }} {{ .instance |toString }}
env: env:
- name: TANGO_HOST - name: TANGO_HOST
value: {{ $tango_host }} value: {{ $tango_host }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment