From 87bb966505efc944de6aae60c05a4d4bb4f5b409 Mon Sep 17 00:00:00 2001 From: zhanglikun Date: Fri, 28 Apr 2023 14:17:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0keepalived=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0-download.sh | 2 ++ keepalived/install.sh | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 keepalived/install.sh diff --git a/0-download.sh b/0-download.sh index ec8cb8c..dca6c3d 100644 --- a/0-download.sh +++ b/0-download.sh @@ -7,6 +7,7 @@ curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/downlo # curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/kernel_5.4/kernel_5.4.tar.gz curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/kubeadm_images/kubeadm_images.tar.gz curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/kubeadm_rpms/kubeadm_rpms.tar.gz +curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/keepalived/keepalived.tar.gz tar xf docker-ce-20.10.tar.gz -C ../docker/ tar xf flannel.tar.gz -C ../flannel/ @@ -14,3 +15,4 @@ tar xf ingress-nginx.tar.gz -C ../ingress-nginx/ # tar xf kernel_5.4.tar.gz -C ../kernel_5.4/ tar xf kubeadm_images.tar.gz -C ../kubeadm/ tar xf kubeadm_rpms.tar.gz -C ../kubeadm/ +tar xf keepalived.tar.gz -C ../keepalived/ \ No newline at end of file diff --git a/keepalived/install.sh b/keepalived/install.sh new file mode 100644 index 0000000..22c6679 --- /dev/null +++ b/keepalived/install.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +yum install -y ./*.rpm +systemctl enable --now keepalived \ No newline at end of file