This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IFS=$'\n' ; for xx in `kubectl get pods --namespace spinnaker | grep -v Running | awk '{ a=$1;b=$2; print b }'` ; do kubectl --namespace spinnaker delete pod $xx ; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| NAMESPACE=default | |
| CONTEXT=k8s.example.localhost.com | |
| kubectl get pods --field-selector=status.phase=Failed --namespace=$NAMESPACE --context=$CONTEXT | awk {'if (FNR > 1) print $1'} | xargs kubectl delete pod --namespace=$NAMESPACE --context=$CONTEXT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ========= | |
| Orca | |
| ========= | |
| 2018-05-31 06:13:07.193 INFO 1 --- [.0-8083-exec-10] c.n.s.o.c.OperationsController : [anonymous] requested task:{ | |
| "application" : "exportapiexternal", | |
| "name" : "Save pipeline 'Docker Deploy to Dev'", | |
| "stages" : [ { | |
| "type" : "savePipeline", | |
| "pipeline" : "<removed>", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git name-rev --name-only HEAD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for i in $(yarn application -list | grep application_ | awk '{print $1}'); do echo $i; done | |
| # kill all by swapping echo to `yarn application -kill $i` | |
| # for i in $(yarn application -list | grep application_ | awk '{print $1}'); do yarn application -kill $i; done |