This file contains 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
# Source: https://gist.github.com/6955a3fa05665c6b8bb7a3a48ebbdd23 | |
########################################## | |
# DevSpace # | |
# Development Environments in Kubernetes # | |
# https://youtu.be/nQly_CEjJc4 # | |
########################################## | |
# Referenced videos: | |
# - How To Create Virtual Kubernetes Clusters With vcluster By loft: https://youtu.be/JqBjpvp268Y |
This file contains 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
aws elb describe-load-balancers | |
kubectl config view | |
kubectl create -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml | |
kubectl --namespace kube-ingress get all | |
aws elb describe-load-balancers |
This file contains 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
// assume this is some list of things you're going to do something with | |
def someList | |
def parallelBranches = someList.collectEntries { n -> | |
[(n): { | |
throttle('category') { | |
node('some-node') { | |
// do some things with n | |
} | |
} | |
}] |
This file contains 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 applications = env.APPLICATIONS.split(",").findAll { it }.collect { it.trim() } | |
def environment = env.ENVIRONMENT | |
def version = env.VERSION | |
def jobs = [:] | |
if (applications.size() < 1) { | |
error("ERROR: APPLICATIONS must be a comma-delimited list of applications to build") | |
} | |
for (int i = 0; i < applications.size(); i++) { |
This file contains 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
/* | |
* Variable bindings: | |
* user - credentials plugin user | |
* url - git repository url (.git) | |
*/ | |
import com.cloudbees.plugins.credentials.CredentialsProvider; | |
import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials; | |
import jenkins.model.Jenkins |
This file contains 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 | |
PLUGIN=$1 | |
VERSION=$2 | |
UC=$3 | |
if [ -z "$PLUGIN" ] | |
then | |
echo 'Usage: uc-grep short-name [core-version [https://jenkins-updates.cloudbees.com/update-center/envelope-core-mm/]]' | |
exit 1 | |
fi | |
if [ -z "$VERSION" ] |
This file contains 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
java -jar yourApp.jar [JVM_OPTIONS] | |
For local host access only JVM_OPTIONS are: | |
-Dcom.sun.management.jmxremote | |
-Dcom.sun.management.jmxremote.port=9010 | |
-Dcom.sun.management.jmxremote.host=127.0.0.1 | |
-Dcom.sun.management.jmxremote.local.only=true | |
-Dcom.sun.management.jmxremote.authenticate=false | |
-Dcom.sun.management.jmxremote.ssl=false |