#!/bin/sh set -xe export K3D_VERSION=${K3D_VERSION:-"1.3.0-dev.0"} export KUBECTL_VERSION=${KUBECTL_VERSION:-"$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)"} export HELM_VERSION=${HELM_VERSION:-"2.14.2"} export TERRAFORM_VERSION=${TERRAFORM_VERSION:-"1.1.7"} export ISTIO_VERSION=${ISTIO_VERSION:-"1.1.7"} export KNATIVE_VERSION=${KNATIVE_VERSION:-"0.7.0"} export CERT_MANAGER_VERSION=${CERT_MANAGER_VERSION:-"0.6.1"} curl -L -o k3d https://github.com/rancher/k3d/releases/download/v${K3D_VERSION}/k3d-linux-amd64 curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl chmod 700 k3d kubectl mv k3d kubectl ~/.local/bin/ curl -sSL https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz | tar xvz mv linux-amd64/{helm,tiller} ~/.local/bin/ rm -rf linux-amd64/ curl -LO https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip rm terraform_${TERRAFORM_VERSION}_linux_amd64.zip mv terraform ~/.local/bin/ # TODO version tag curl -LO https://github.com/jbussdieker/tiller-ssl-terraform/raw/master/tiller_certs.tf # Download and unpack Istio # TODO version tag curl -L https://git.io/getLatestIstio | sh - cd istio-${ISTIO_VERSION} # Download Knative curl -LO https://github.com/knative/build/releases/download/v${KNATIVE_VERSION}/build.yaml curl -LO https://github.com/knative/serving/releases/download/v${KNATIVE_VERSION}/serving.yaml curl -LO https://github.com/knative/serving/releases/download/v${KNATIVE_VERSION}/monitoring.yaml curl -LO https://github.com/knative/eventing/releases/download/v${KNATIVE_VERSION}/release.yaml curl -sSL https://github.com/jetstack/cert-manager/archive/v${CERT_MANAGER_VERSION}.tar.gz | tar xz