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
| apiVersion: v1 | |
| kind: Route | |
| metadata: | |
| name: mq | |
| spec: | |
| port: | |
| targetPort: 9443-tcp | |
| tls: | |
| insecureEdgeTerminationPolicy: Redirect | |
| termination: passthrough |
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
| oc new-app --docker-image=ibmcom/mq --env=LICENSE=accept --env=MQ_QMGR_NAME=QM1 | |
| oc create -f https://gist.githubusercontent.com/garethahealy/2b656098b8f0dfe0d56cd9ab69a6e055/raw/eead5418ee0c874297c6c39b30f0cc09c3fa524c/mq-webconsole-route.yaml |
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
| [ | |
| { | |
| "id": "pod\/6034c03d-3be1-11e7-9f3a-fa163e74d539\/custom\/java.lang:type=Memory#HeapMemoryUsage#*{2=committed}", | |
| "tags": { | |
| "2": "committed", | |
| "cluster_name": "", | |
| "collector": "hawkular_openshift_agent", | |
| "custom_metric": "true", | |
| "description": "Heap Memory Used committed", | |
| "host_ip": "192.168.34.20", |
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
| def createOrApplyResource( String project, String resourcePath, String appName) { | |
| def countScript = $/eval "oc project ${project} | oc get is ${appName} --no-headers -n ${project} | wc -l | xargs"/$ | |
| def resourceCountRaw = sh returnStdout: true, script: "${countScript}" | |
| if ( resourceCountRaw.equalsIgnoreCase("0") ) { | |
| sh "oc project ${project} && oc create -f ${resourcePath} -n ${project}" | |
| } else if ( resourceCountRaw.equalsIgnoreCase("1") ) { | |
| sh "oc project ${project} && oc apply -f ${resourcePath} -n ${project}" | |
| } else { | |
| sh "echo 'Unknown response: resourceCountRaw == ${resourceCountRaw}'" |
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
| apiVersion: v1 | |
| kind: Template | |
| labels: | |
| template: scheduledjob-helloworld | |
| metadata: | |
| annotations: | |
| description: Scheduled Task to Print HelloWorld | |
| iconClass: icon-shadowman | |
| tags: scheduledjob,bash | |
| creationTimestamp: null |
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
| quiver: Calling 'quiver-arrow receive --impl vertx-proton //amq7-broker:5673/amqp-vertx-proton --messages 100 --body-size 100 --credit 1000 --transaction-size 0 --timeout 10 --output /tmp/quiver-FU15mZ --verbose' | |
| quiver: Calling 'quiver-arrow send --impl vertx-proton //amq7-broker:5673/amqp-vertx-proton --messages 100 --body-size 100 --credit 1000 --transaction-size 0 --timeout 10 --output /tmp/quiver-FU15mZ --verbose' | |
| quiver-arrow: Calling '/usr/lib/quiver/exec/quiver-arrow-vertx-proton client active send quiver-bc3275da amq7-broker 5673 amqp-vertx-proton 100 100 1000 0' | |
| quiver-arrow: Calling '/usr/lib/quiver/exec/quiver-arrow-vertx-proton client active receive quiver-701eda54 amq7-broker 5673 amqp-vertx-proton 100 100 1000 0' | |
| quiver-arrow-vertx-proton: Calling '/usr/bin/env -- java -classpath /usr/lib/quiver/java/quiver-vertx-proton.jar -Dorg.slf4j.simpleLogger.defaultLogLevel=warn net.ssorj.quiver.QuiverArrowVertxProton client active send quiver-bc3275da amq7-broker 5673 amqp-vertx-proton 100 100 1000 0' | |
| q |
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
| quiver: Calling 'quiver-arrow receive --impl activemq-jms //amq7-broker:61616/jms-amq6 --messages 100 --body-size 100 --credit 1000 --transaction-size 0 --timeout 10 --output /tmp/quiver-l4WS9K --verbose' | |
| quiver: Calling 'quiver-arrow send --impl activemq-jms //amq7-broker:61616/jms-amq6 --messages 100 --body-size 100 --credit 1000 --transaction-size 0 --timeout 10 --output /tmp/quiver-l4WS9K --verbose' | |
| quiver-arrow: Calling '/usr/lib/quiver/exec/quiver-arrow-activemq-jms client active receive quiver-e5f96abc amq7-broker 61616 jms-amq6 100 100 1000 0' | |
| quiver-arrow: Calling '/usr/lib/quiver/exec/quiver-arrow-activemq-jms client active send quiver-7f7ae3f1 amq7-broker 61616 jms-amq6 100 100 1000 0' | |
| quiver-arrow-activemq-jms: Calling '/usr/bin/env -- java -Darrow.jms.url=tcp://amq7-broker:61616?jms.clientID=quiver-e5f96abc&jms.prefetchPolicy.all=1000 -Djava.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory -Dorg.slf4j.simpleLogger.defaultLogLevel=warn -classpath /usr/lib/quiver/java/q |
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
| #!/usr/bin/env bash | |
| ## Replace {} with values | |
| travis login --user {travis login - i use github} --github-token={token which you can get some the settings page} | |
| gpg --export --armor {key email} > ./.travis/codesigning.asc | |
| gpg --export-secret-keys --armor {key email} >> ./.travis/codesigning.asc | |
| cd ./.travis || exit | |
| travis encrypt-file codesigning.asc --add |
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
| [root@exvoseregdev1:/home/gahealy]# oc import-image openshift3/ose-pod --from=registry.access.redhat.com/openshift3/ose-pod --all=true --confirm=true --request-timeout=300 -n openshift3 --loglevel=8 | |
| I0314 15:56:34.757475 125192 loader.go:354] Config loaded from file /root/.kube/config | |
| I0314 15:56:34.758987 125192 round_trippers.go:296] GET https://registry-int.ocp.metoffice.gov.uk:8443/api | |
| I0314 15:56:34.758999 125192 round_trippers.go:303] Request Headers: | |
| I0314 15:56:34.759005 125192 round_trippers.go:306] Accept: application/json, */* | |
| I0314 15:56:34.759011 125192 round_trippers.go:306] User-Agent: oc/v1.4.0+776c994 (linux/amd64) kubernetes/a9e9cf3 | |
| I0314 15:56:34.793013 125192 round_trippers.go:321] Response Status: 200 OK in 33 milliseconds | |
| I0314 15:56:34.793057 125192 round_trippers.go:324] Response Headers: | |
| I0314 15:56:34.793062 125192 round_trippers.go:327] Content-Type: application/json | |
| I0314 15:56:34.793067 125192 round_trippers.go:327] Date: Tue, 14 Mar 2017 15:56:34 GMT |
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
| #!/usr/bin/env bash | |
| projects=$(oc get projects --no-headers | cut -d' ' -f1 | xargs) | |
| projects_array=($projects) | |
| declare -A quota_soft_total | |
| declare -A metrics_to_create | |
| for project in "${projects_array[@]}" ; do | |
| quota_array=$(oc get quota --output=json -n $project) | |