This file contains hidden or 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
| package scp | |
| import ( | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "net" | |
| "strconv" | |
| "time" |
This file contains hidden or 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
| export K8SVERSION=1.11.6 | |
| cat <<EOF > /etc/yum.repos.d/kubernetes.repo | |
| [kubernetes] | |
| name=Kubernetes | |
| baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 | |
| enabled=1 | |
| gpgcheck=1 | |
| repo_gpgcheck=1 | |
| gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg |
This file contains hidden or 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
| export K8SVERSION=1.11.6 | |
| export K8SROLE=master | |
| mkdir k8s && cd k8s | |
| yum install -y p7zip | |
| docker save `docker images --format "{{.Repository}}:{{.Tag}}"` -o k8s-$K8SROLE-images-$K8SVERSION.tar | |
| 7za a k8s-$K8SROLE-images-$K8SVERSION.tar.7z k8s-$K8SROLE-images-$K8SVERSION.tar | |
| rm -f k8s-$K8SROLE-images-$K8SVERSION.tar | |
| cat << EOF > Dockerfile |