zoukankan      html  css  js  c++  java
  • 开箱即用的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可以看到

      

      

    
    
    1、建了一个小群:616945527(软件), 欢迎大家加入,加群口令abc123,硬件嵌入式开发者推荐75764412(单片机)。
    闲置域名www.nsxz.com出售(等宽等高字符四字域名,可组合多种有意义词语)。
  • 相关阅读:
    在am中定义消息集束,并在CO中验证之后抛出异常。
    在EORow或者VORow中对数据进行重复性校验
    axis2 webservice jar包使用情况(转)
    std::function以及std::bind
    Qt学习过程
    NULL和nullptr
    清空表且id为0
    C++线程互斥、同步
    warning: deleting 'void *' is undefined 错误
    Classification / Recognition
  • 原文地址:https://www.cnblogs.com/zhaogaojian/p/14830253.html
Copyright © 2011-2022 走看看