删除vagrant
This commit is contained in:
parent
eb34cd4960
commit
086e56c48e
@ -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
|
||||
-i 2-create_k8s.sh
|
@ -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 |
|
||||
| 3-nginx_ingress.sh | 安装nginx-ingress |
|
||||
|
34
Vagrantfile
vendored
34
Vagrantfile
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user