From 086e56c48e3e5102b83d79ea0afcb3d9df832721 Mon Sep 17 00:00:00 2001 From: zhanglikun Date: Thu, 15 Jun 2023 11:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4vagrant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0-config.sh | 3 +-- README.md | 7 ++++--- Vagrantfile | 34 ---------------------------------- 3 files changed, 5 insertions(+), 39 deletions(-) delete mode 100644 Vagrantfile diff --git a/0-config.sh b/0-config.sh index 4709117..e096411 100644 --- a/0-config.sh +++ b/0-config.sh @@ -10,5 +10,4 @@ sed -e "s/10.0.0.11/${master1}/g" \ -e "s/10.0.0.13/${master3}/g" \ -e "s/10.0.0.3/${vip}/g" \ -i keepalived/*.conf \ - -i 2-create_k8s.sh \ - -i Vagrantfile \ No newline at end of file + -i 2-create_k8s.sh \ No newline at end of file diff --git a/README.md b/README.md index 10dd9aa..f308078 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ # offline-kubernetes-install -完全离线的情况下, 安装k8s集群, 基于CentOS7 + +完全离线的情况下, 安装k8s集群, 基于CentOS7, k8s 1.21.10 版本, 容器运行时 是docker | 脚本 | 说明 | | ------------------ | -------------------------------------- | -| 0-kernel_5.4.sh | 可选, 安装5.4内核 | +| 0-kernel_5.4.sh | 可选, 安装5.4内核 | | 0-config.sh | 修改里面的配置, 然后执行 | | 0-download.sh | 下载离线包, 支持断点续传 | | 1-init.sh | 初始化配置, 所有节点都需要执行 | | 2-create_k8s.sh | 创建集群, 只需要在一台master上执行即可 | -| 3-nginx_ingress.sh | 安装nginx-ingress | \ No newline at end of file +| 3-nginx_ingress.sh | 安装nginx-ingress | diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index 19046e7..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,34 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -servers = { - :master1 => '10.0.0.11', - :master2 => '10.0.0.12', - :master3 => '10.0.0.13' -} - -Vagrant.configure("2") do |config| - config.vm.box = "centos/7" - config.vm.box_check_update = false - - # 自动插入hosts - # vagrant plugin install vagrant-hostmanager - config.hostmanager.enabled = true - config.hostmanager.manage_host = true - config.hostmanager.manage_guest = true - config.hostmanager.ignore_private_ip = false - config.hostmanager.include_offline = true - - - servers.each do |server_name, server_ip| - config.vm.define server_name do |server_config| - server_config.vm.hostname = "#{server_name.to_s}" - server_config.vm.network :private_network, ip: server_ip - server_config.vm.provider "virtualbox" do |vb| - vb.name = server_name.to_s - vb.memory = "2048" - vb.cpus = 4 - end - end - end -end \ No newline at end of file