Add another label `kind` for running kubernetes queries across all masters

This commit is contained in:
R. Tyler Croy 2017-12-18 14:11:39 -08:00
parent 4b822e607f
commit 2f5ed696bd
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 4 additions and 4 deletions

View File

@ -76,8 +76,9 @@ items:
template:
metadata:
labels:
app: 'jenkins'
app: 'jenkins-@@USER@@'
owner: '@@USER@@'
kind: 'master'
annotations:
spec:
securityContext:

View File

@ -1,7 +1,6 @@
#!/bin/sh
REPO_DIR=$(realpath $(dirname $0)/../)
for monkey in $(cat $REPO_DIR/monkeys.txt); do
kubectl rolling-update jenkins-${monkey} --image=rtyler/codevalet-master:latest --image-pull-policy=Always --update-period=10s
for pod in $(kubectl get pods --all-namespaces -o name -l kind=master); do
echo $pod;
done;