File tree Expand file tree Collapse file tree 5 files changed +20
-10
lines changed
Expand file tree Collapse file tree 5 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 1+ cat <<EOF >>/etc/bashrc
2+ PS1='[\u@bastion-'$cluster' \W]\$ '
3+ EOF
4+
15while ! rpm --import https://packages.microsoft.com/keys/microsoft.asc; do
26 sleep 2
37done
Original file line number Diff line number Diff line change 1+ cat <<EOF >>/etc/bashrc
2+ PS1='[\u@bastion-'$cluster' \W]\$ '
3+ EOF
4+
15curl -sL -o /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.23.6/bin/linux/amd64/kubectl
26chmod 755 /usr/bin/kubectl
37
Original file line number Diff line number Diff line change 1+ cat <<EOF >>/etc/bashrc
2+ PS1='[\u@bastion-'$cluster' \W]\$ '
3+ EOF
4+
15GKE_CLUSTER_NAME=px-deploy-$name-$cluster
26
37dnf install -y docker google-cloud-cli-gke-gcloud-auth-plugin
48systemctl enable --now docker
59
6- #curl -L https://github.com/containerd/containerd/releases/download/v1.6.15/containerd-1.6.15-linux-amd64.tar.gz | tar Cxzvf /usr/local -
7- #curl -o /etc/systemd/system/containerd.service https://raw.githubusercontent.com/containerd/containerd/main/containerd.service
8- #mkdir /etc/containerd
9- #containerd config default | sed 's/SystemdCgroup = false/SystemdCgroup = true/' >/etc/containerd/config.toml
10- #curl -Lo /usr/sbin/runc https://github.com/opencontainers/runc/releases/download/v1.1.4/runc.amd64
11- #chmod 755 /usr/sbin/runc
12- #systemctl daemon-reload
13- #systemctl enable --now containerd
14- #systemctl enable --now podman
15-
1610curl -sL -o /usr/bin/kubectl "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
1711chmod 755 /usr/bin/kubectl
1812
Original file line number Diff line number Diff line change 1+ cat <<EOF >>/etc/bashrc
2+ PS1='[\u@bastion-'$cluster' \W]\$ '
3+ EOF
4+
15dnf install -y docker wget
26systemctl enable --now docker
37
Original file line number Diff line number Diff line change 1+ cat <<EOF >>/etc/bashrc
2+ PS1='[\u@bastion-'$cluster' \W]\$ '
3+ EOF
4+
15repo=$(echo $rancher_k8s_version | cut -f 1,2 -d .)
26cat <<EOF >/etc/yum.repos.d/kubernetes.repo
37[kubernetes]
You can’t perform that action at this time.
0 commit comments