- packer
- vagrant
- virtualbox
packer build k3os.jsonvagrant up
This set of scripts enables quick ssh access to a group of similarly named machines
generate-instance-list.sh to get a list of aws instance idsssh-connect.sh against the generated list to access any of the instancesCurrently it is not possible to differentiate the machines easily - enable access by more human readable names in the generated instance list.
sbin/generate-instance-list.sh -n mak3r-rancher-training-k3s > instance-ids.jsonsbin/ssh-connect.sh -i 0 -k ~/.ssh/mak3r-private.pem -ssbin/generate-instance-list.sh -n mak3r-rancher-training-k3s > instance-ids.jsonsbin/ssh-connect.sh -i 0 -k ~/.ssh/mak3r-private.pem -sThis is an unofficial documentation of what I did to setup the Rancher v2 air-gap HA install
Official docs are here https://rancher.com/docs/rancher/v2.x/en/installation/air-gap-high-availability/
| #!/bin/bash | |
| # based on | |
| # https://rancher.com/docs/rancher/v2.x/en/upgrades/upgrades/single-node-upgrade/ | |
| RANCHER_CONTAINER_NAME=$1 | |
| RANCHER_CONTAINER_TAG=$2 | |
| RANCHER_VERSION=$3 | |
| RANCHER_UPGRADE_VERSION=$4 |
| FROM ubuntu:18.04 | |
| # default kubectl version is current stable | |
| # override this when building the container to use a different version | |
| ARG KUBECTL_VER='$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)' | |
| WORKDIR /app | |
| # include my kubeconfig in the container | |
| COPY kubeconfig /app/kubeconfig |
| # encoding: utf-8 | |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| #put <<FYI | |
| # create a virtualbox vm with the latest version of kubectl | |
| # vagrant up | |
| # create a virtualbox vm with a specific version of kubectl | |
| # KUBECTL_VER=v1.9.7 vagrant up | |
| #FYI |