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 | |
# Scale DOWN all Turbonetes PODs to 0 | |
function turbo_stop_all_pods { | |
turbo_stop_all_pods=$(kubectl get deploy -n turbonomic --no-headers=true | cut -d ' ' -f1 | xargs -I % kubectl scale --replicas=0 deployment/% -n turbonomic) | |
while true; do | |
if `kubectl get pods -n turbonomic | grep -v STATUS | wc -l` -gt 0 then | |
echo -e "turbo_STOP_all_pods: Waiting on Turbonetes POD(s) to TERMINATE, so far: \n`kubectl get pods -n turbonomic | grep -v NAME`" | |
elif | |
[[ "$counter" -gt 30 ]]; then; | |
echo "MAX Counter Reached! One or more PODs are stuck ##TERMINATING##, intervening to kill it/them" |
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
function turbo_tail { | |
syslog_directory=$(sudo find /var/lib/kubelet/pods -name $(kubectl get pvc -n turbonomic | grep rsyslog-syslogdata | awk '{print $3}')) | |
syslog_directory+='/rsyslog' | |
echo "### !!TAILING YOUR TURBONETES LOG!! ###" | |
sudo tail -f $syslog_directory/log.txt | |
} |
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
# Create an OSEv3 group that contains the masters and nodes groups | |
[OSEv3:children] | |
masters | |
nodes | |
etcd | |
#lb | |
# Set variables common for all OSEv3 hosts | |
[OSEv3:vars] | |
# SSH user, this user should allow ssh based auth without requiring a password |
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 | |
#============================================== | |
# silly script to import 5000 docker images | |
# into OpenShift as image streams | |
# Author: Joel Sheppard | |
#============================================== | |
oc import-image 2717 --from gradle:latest --confirm | |
oc import-image 6567 --from mhart/alpine-node-auto:latest --confirm | |
oc import-image 2859 --from aptalca/home-automation-bridge:latest --confirm |
This file has been truncated, but you can view the full file.
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 | |
#============================================== | |
# silly script to import 20000 docker images | |
# into OpenShift as image streams | |
# Author: Joel Sheppard | |
#============================================== | |
oc import-image 2717 --from gradle:latest --confirm | |
oc import-image 6567 --from mhart/alpine-node-auto:latest --confirm | |
oc import-image 2859 --from aptalca/home-automation-bridge:latest --confirm |
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 | |
#============================================== | |
# silly script to import 2000 docker images | |
# into OpenShift as image streams | |
# Author: Joel Sheppard | |
#============================================== | |
oc import-image 2717 --from gradle:latest --confirm | |
oc import-image 6567 --from mhart/alpine-node-auto:latest --confirm | |
oc import-image 2859 --from aptalca/home-automation-bridge:latest --confirm |
This file has been truncated, but you can view the full file.
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 | |
#============================================== | |
# silly script to import 15000 docker images | |
# into OpenShift as image streams | |
# Author: Joel Sheppard | |
#============================================== | |
oc import-image 2717 --from gradle:latest --confirm | |
oc import-image 6567 --from mhart/alpine-node-auto:latest --confirm | |
oc import-image 2859 --from aptalca/home-automation-bridge:latest --confirm |
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 | |
#============================================== | |
# silly script to import 1000 docker images | |
# into OpenShift as image streams | |
# Author: Joel Sheppard | |
#============================================== | |
oc import-image 2717 --from gradle:latest --confirm | |
oc import-image 6567 --from mhart/alpine-node-auto:latest --confirm | |
oc import-image 2859 --from aptalca/home-automation-bridge:latest --confirm |
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 | |
#============================================== | |
# silly script to import 1000 docker images | |
# into OpenShift as image streams | |
# Author: Joel Sheppard | |
#============================================== | |
oc import-image 2717 --from gradle:latest --confirm | |
oc import-image 6567 --from mhart/alpine-node-auto:latest --confirm | |
oc import-image 2859 --from aptalca/home-automation-bridge:latest --confirm |
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 | |
#============================================== | |
# silly script to import 100 docker images | |
# into OpenShift as image streams | |
# Author: Joel Sheppard | |
#============================================== | |
oc import-image 2717 --from gradle:latest --confirm | |
oc import-image 6567 --from mhart/alpine-node-auto:latest --confirm | |
oc import-image 2859 --from aptalca/home-automation-bridge:latest --confirm |
NewerOlder