With Puppet:
puppet module install rtyler-jenkins
puppet apply -v -e "include jenkins"
Picking the right architecture = Picking the right battles + Managing trade-offs
#!/bin/bash | |
# Configuration | |
#export DIGITALOCEAN_ACCESS_TOKEN= # Digital Ocean Token (mandatory to provide) | |
export DIGITALOCEAN_SIZE=512mb # default | |
export DIGITALOCEAN_REGION=nyc3 # default | |
export DIGITALOCEAN_PRIVATE_NETWORKING=true # default=false | |
#export DIGITALOCEAN_IMAGE="ubuntu-15-04-x64" # default | |
# For other settings see defaults in https://docs.docker.com/machine/drivers/digital-ocean/ |
Last update: Tue Jan 14 23:15:49 UTC 2020 by @luckylittle
#!/bin/bash -xe | |
SNOWBALL_IP='192.168.1.240' | |
S3="aws --profile snowballEdge --region snow --endpoint https://${SNOWBALL_IP}:8443 --ca-bundle /etc/pki/ca-trust/source/anchors/sbe.crt s3" | |
EC2="aws --profile snowballEdge --region snow --endpoint https://${SNOWBALL_IP}:8243 --ca-bundle /etc/pki/ca-trust/source/anchors/sbe.crt ec2" | |
BUCKET="redhat-dan" | |
IGN_CONFIGS='/home/danclark/openshift_clusters/snow/' | |
IGN_BASE='/home/danclark/openshift_clusters/install-config.yaml' |
#!/bin/bash | |
set -eu -o pipefail | |
NUM_OF_PAGES="6" | |
DOWNLOAD_DIR="/tmp/mando" | |
mkdir -p "${DOWNLOAD_DIR}" |
DemoHandler | |
--- | |
def lambda_handler(event, context): | |
print(event) | |
return "hello, world!!" | |
DemoAuthorizer | |
--- |
This is a tested example.
Not all clusters will have the metrics API, but this will function for ones that do.
The deployment uses the bitnami/kubectl image
.
It runs "get node metrics" in a shell while loop that sleeps.
The Deployment's Pod-template uses a ServiceAccount that is ClusterRoleBound to a ClusterRole permitting the list
and get
verbs for the Node
kind in the metrics.k8s.io
API group.
Here's how to reproduce:
#!/bin/bash -xe | |
SNOWBALL_IP='192.168.1.240' | |
S3="aws --profile snowballEdge --region snow --endpoint https://${SNOWBALL_IP}:8443 --ca-bundle /etc/pki/ca-trust/source/anchors/sbe.crt s3" | |
EC2="aws --profile snowballEdge --region snow --endpoint https://${SNOWBALL_IP}:8243 --ca-bundle /etc/pki/ca-trust/source/anchors/sbe.crt ec2" | |
BUCKET="redhat-dan" | |
IGN_CONFIGS='/home/danclark/openshift_clusters/snow/' | |
IGN_BASE='/home/danclark/openshift_clusters/install-config.yaml' |