删除vagrant

This commit is contained in:
zhanglikun 2023-06-15 11:11:44 +08:00
parent eb34cd4960
commit 086e56c48e
No known key found for this signature in database
GPG Key ID: CEA7CACC468ACDFE
3 changed files with 5 additions and 39 deletions

View File

@ -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.13/${master3}/g" \
-e "s/10.0.0.3/${vip}/g" \ -e "s/10.0.0.3/${vip}/g" \
-i keepalived/*.conf \ -i keepalived/*.conf \
-i 2-create_k8s.sh \ -i 2-create_k8s.sh
-i Vagrantfile

View File

@ -1,5 +1,6 @@
# offline-kubernetes-install # offline-kubernetes-install
完全离线的情况下, 安装k8s集群, 基于CentOS7
完全离线的情况下, 安装k8s集群, 基于CentOS7, k8s 1.21.10 版本, 容器运行时 是docker
| 脚本 | 说明 | | 脚本 | 说明 |
| ------------------ | -------------------------------------- | | ------------------ | -------------------------------------- |

34
Vagrantfile vendored
View File

@ -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