Skip to content

Instantly share code, notes, and snippets.

@Aisuko
Last active May 19, 2019 07:29
Show Gist options
  • Save Aisuko/06797d80e15c37e7f1a23bb3b29a2453 to your computer and use it in GitHub Desktop.
Save Aisuko/06797d80e15c37e7f1a23bb3b29a2453 to your computer and use it in GitHub Desktop.
Init environment on CentOS 7, includes docker, k3s, skaffold.
# /bin/bash
set -ex
# docker
yum -y install docker
service docker start
sudo systemctl enable docker
# k3d
if [ -f /usr/bin/curl ];then
curl -s https://raw.githubusercontent.com/rancher/k3d/master/install.sh | bash
else
yum -y instal curl
fi
k3d create --workers 3
export KUBECONFIG="$(k3d get-kubeconfig --name='k3s-default')"
# skaffold
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64
chmod +x skaffold
sudo mv skaffold /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment