/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to scripts/openshift/kill-stalled.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2018-03-21 16:21:54 UTC
  • Revision ID: csa@suren.me-20180321162154-w138wtbfi1uy8ma3
Various improvements for OpenShift operation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash
 
2
 
 
3
. opts.sh
 
4
 
 
5
 
 
6
pods=$(oc -n $ADEI_NS  -l "adei-type=cacher" "$@" get po | grep -v NAME | grep ContainerCreating | awk '{print $1}')
 
7
oc -n $ADEI_NS delete pods $pods
 
8
 
 
9
pods=$(oc -n $ADEI_NS  -l "adei-type=cron" "$@" get po | grep -v NAME | grep ContainerCreating | awk '{print $1}')
 
10
oc -n $ADEI_NS delete pods $pods