Last active
May 19, 2019 07:29
-
-
Save Aisuko/06797d80e15c37e7f1a23bb3b29a2453 to your computer and use it in GitHub Desktop.
Init environment on CentOS 7, includes docker, k3s, skaffold.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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