added k3s install
This commit is contained in:
parent
6eabd40021
commit
698e67d8c0
3 changed files with 142 additions and 56 deletions
35
vagrant/dev/ubuntu/Vagrantfile
vendored
35
vagrant/dev/ubuntu/Vagrantfile
vendored
|
|
@ -10,33 +10,12 @@ Vagrant.configure("2") do |config|
|
|||
config.vm.define "vm1" do |vm1|
|
||||
vm1.vm.box = "ubuntu/jammy64"
|
||||
|
||||
# run ip link to list network interfaces on linux
|
||||
# run ipconfig to list network interfaces on Windows
|
||||
# Example output:
|
||||
# Ethernet adapter vEthernet (WSL):
|
||||
# Connection-specific DNS Suffix . :
|
||||
# IPv6 Address. . . . . . . . . . . : fe80::xxxx:xxxx:xxxx:xxxx%xx
|
||||
# IPv4 Address. . . . . . . . . . . : 192.168.x.x
|
||||
# Subnet Mask . . . . . . . . . . . :
|
||||
# on macOS, run ifconfig to list network interfaces
|
||||
# Example output:
|
||||
# en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
# options=400<LINKSTATE>
|
||||
# ether xx:xx:xx:xx:xx:xx
|
||||
# inet6 fe80::xxxx:xxxx:xxxx:xxxx%en0 prefixlen 64 scopeid 0x4
|
||||
# inet 192.168.x.x netmask 0xffffff00 broadcast 192.168.x.255
|
||||
# Fixed private network IP
|
||||
vm1.vm.network "private_network", ip: "192.168.56.80"
|
||||
|
||||
# This configuration sets up a private network for inter-VM communication
|
||||
# and a public network for external access.
|
||||
# The private network uses DHCP to assign IP addresses automatically.
|
||||
# Private network for inter-VM communication using DHCP
|
||||
|
||||
# Uncomment the following line to use a specific network interface for the public network
|
||||
# and replace "wlp0s20f3" with your actual network interface name.
|
||||
# Public network for external access
|
||||
vm1.vm.network "public_network", bridge: "wlp0s20f3"
|
||||
|
||||
vm1.vm.network "private_network", type: "dhcp"
|
||||
|
||||
vm1.vm.provider "virtualbox" do |vb|
|
||||
vb.memory = "2048" # 2GB memory
|
||||
vb.cpus = 2
|
||||
|
|
@ -53,8 +32,8 @@ Vagrant.configure("2") do |config|
|
|||
config.vm.define "vm2" do |vm2|
|
||||
vm2.vm.box = "ubuntu/jammy64"
|
||||
|
||||
# Private network for inter-VM communication using DHCP
|
||||
vm2.vm.network "private_network", type: "dhcp"
|
||||
# Fixed private network IP
|
||||
vm2.vm.network "private_network", ip: "192.168.56.81"
|
||||
|
||||
# Public network for external access
|
||||
vm2.vm.network "public_network", bridge: "wlp0s20f3"
|
||||
|
|
@ -75,8 +54,8 @@ Vagrant.configure("2") do |config|
|
|||
config.vm.define "vm3" do |vm3|
|
||||
vm3.vm.box = "ubuntu/jammy64"
|
||||
|
||||
# Private network for inter-VM communication using DHCP
|
||||
vm3.vm.network "private_network", type: "dhcp"
|
||||
# Fixed private network IP
|
||||
vm3.vm.network "private_network", ip: "192.168.56.82"
|
||||
|
||||
# Public network for external access
|
||||
vm3.vm.network "public_network", bridge: "wlp0s20f3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue