Des clusters Kubernetes imbriqués avec Ignite, Firecracker, Containerd, Kind et Rancher …

$ apt-get update && apt-get install -y --no-install-recommends containerd dmsetup openssh-client git binutils
$ export CNI_VERSION=v0.8.2
$ export ARCH=$([ $(uname -m) = "x86_64" ] && echo amd64 || echo arm64)
$ mkdir -p /opt/cni/bin
$ curl -sSL https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-${ARCH}-${CNI_VERSION}.tgz | tar -xz -C /opt/cni/bin
$ for binary in ignite ignited; do
echo "Installing ${binary}..."
curl -sfLo ${binary} https://github.com/weaveworks/ignite/releases/download/${VERSION}/${binary}-${GOARCH}
chmod +x ${binary}
mv ${binary} /usr/bin
done
$ ignite run weaveworks/ignite-ubuntu \
--cpus 2 \
--memory 8GB \
--ssh \
--size 50GB \
--name k8s1
$ curl -fsSL https://get.docker.com -o get-docker.sh; sh get-docker.sh; systemctl enable docker; systemctl start docker
config.yaml
$ kind create cluster --config config.yaml
$ curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.15.3/bin/linux/amd64/kubectl; chmod +rwx kubectl; mv kubectl /usr/bin$ export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
$ kubectl apply -f https://raw.githubusercontent.com/google/metallb/v0.8.1/manifests/metallb.yaml
l2.yaml
deployment.yml
$ curl -s https://api.github.com/repos/yyyar/gobetween/releases | grep browser_download_url | grep linux_amd64 | cut -d '"' -f 4 | head -n 1 | wget -i -
gobetween.toml
$ gobetween -c config/gobetween.toml
config.yaml
deployment.yml
gobetween.toml
$ curl -fsSL https://get.docker.com -o get-docker.sh; sh get-docker.sh; systemctl enable docker; systemctl start docker; docker run -d --restart=unless-stopped -p 80:80 -p 443:443 -v /opt/rancher:/var/lib/rancher rancher/rancher:latest
gobetween.toml

Above the clouds, the sky is always blue ...

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store