开箱即用的Minikube
1、https://github.com/Q24/vagrant-box-centos7-minikube
vagrant init ilionx/centos7-minikube vagrant up
2、这里可以手动下载box文件,放到当前目录下,执行如下命令
PS D:\kube> vagrant box add kubebox virtualbox.box ==> box: Box file was not detected as metadata. Adding it directly... ==> box: Adding box 'kubebox' (v0) for provider: box: Unpacking necessary files from: file://D/kube/virtualbox.box box: An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. URL using bad/illegal format or missing URL PS D:\kube> vagrant box add kubebox d:/kube/virtualbox.box ==> box: Box file was not detected as metadata. Adding it directly... ==> box: Adding box 'kubebox' (v0) for provider: box: Unpacking necessary files from: file:///d:/kube/virtualbox.box box: ==> box: Successfully added box 'kubebox' (v0) for 'virtualbox'! PS D:\kube> vagrant init kubebox `Vagrantfile` already exists in this directory. Remove it before running `vagrant init`. PS D:\kube> vagrant init kubebox A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. PS D:\kube> vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'kubebox'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: kube_default_1622430784874_55969 Vagrant is currently configured to create VirtualBox synced folders with the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant guest is not trusted, you may want to disable this option. For more information on this option, please refer to the VirtualBox manual: https://www.virtualbox.org/manual/ch04.html#sharedfolders This option can be disabled globally with an environment variable: VAGRANT_DISABLE_VBOXSYMLINKCREATE=1 or on a per folder basis within the Vagrantfile: config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders... default: /vagrant => D:/kube PS D:\kube>
3、virtualbox可以看到
本博客是个人工作中记录,更深层次的问题可以提供有偿技术支持。
另外建了几个QQ技术群:
2、全栈技术群:616945527
2、硬件嵌入式开发: 75764412
3、Go语言交流群:9924600
闲置域名WWW.EXAI.CN (超级人工智能)出售。
另外建了几个QQ技术群:
2、全栈技术群:616945527
2、硬件嵌入式开发: 75764412
3、Go语言交流群:9924600
闲置域名WWW.EXAI.CN (超级人工智能)出售。