

Oracle Linux boxes for the VirtualBox Vagrant Provider Box _latest and _addons repos enabled as well as _optional_latest, _developer, _developer_EPEL where available.


Vagrant Boxes are pre-built base images that can be imported into Vagrant as a starting point. # " state: present update_cache: yes vars: packages: - kubelet - kubeadm - kubectl - name: Change system to cgroupfs become: false command: echo -n "Environment=\"KUBELET_CGROUP_ARGS=-cgroup-driver=cgroupfs\"" /etc/systemd/system//nf - name: Restart kubelet service: name: kubelet daemon_reload: yes state: restarted - name: Copy the join command to server location copy: src=join-command dest=/tmp/join-command.sh mode=0777 - name: Join the node to cluster command: sh /tmp/join-command.Vagrant is a tool to manage virtual machine-based development environments. Master.vm.provision "ansible" do |ansible|Īaybook = "kubernetes-setup/master-playbook.yml" # change directory name version number0 mv 201910.20.0 # Check whether it is normalĬopy the code Creating a Configuration File The new directory Create project directoryĬopy the code Create a new Vagrantfile file and add the following content IMAGE_NAME = "bento/ubuntu-16.04"Ĭonfig.vm.define "k8s-master" do |master| D/boxes/bento - VAGRANTSLASH - ubuntu 16.04 # Add meta information echo -n "" metadata_url Reference blog: blog link, corrected the original pit, increased the domestic mirror address, convenient domestic installation The body of the Install virtualBox brew install virtualboxĬopy the code Install the vagrant brew install vagrantĬopy the code Use offline box(optional, download box by yourself) Add the downloaded box to the libraryVagrant box add Bento /ubuntu-16.04 ~/Downloads/ download-bento-Ubuntu Switch to the box library directory cd~ /. I have passed the test of these configuration files recorded below, of course, I don't know when they will expire I regret not using Minikube to build the stand-alone version. Today I want to build a K8S cluster environment on my computer and prepare for the subsequent development of the game micro-service framework, but I wasted a lot of time.
