<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 快速搭建 CoreOS 集群 在這里我們要搭建一個集群環境,畢竟單機環境沒有什么挑戰不是? 然后為了在你的電腦運行一個集群環境,我們使用 Vagrant。 *Vagrant 的使用這里不再闡述,請自行學習* 如果你第一次接觸 CoreOS 這樣的分布式平臺,運行一個集群看起來好像一個很復雜的任務,這里我們給你展示在本地快速搭建一個 CoreOS 集群環境是多么的容易。 ## 準備工作 首先要確認在你本地的機器上已經安裝了最新版本的 Virtualbox, Vagrant 和 git。 這是我們可以在本地模擬集群環境的前提條件,如果你已經擁有,請繼續,否則自行搜索學習。 ## 配置工作 從 CoreOS 官方代碼庫獲取基本配置,并進行修改 首先,獲取模板配置文件 ```bash $ git clone https://github.com/coreos/coreos-vagrant $ cd coreos-vagrant $ cp user-data.sample user-data ``` 獲取新的 token ```bash $ curl https://discovery.etcd.io/new ``` 把獲取的 token 放到 user-data 文件中,示例如下: ```yml #cloud-config coreos: etcd: discovery: https://discovery.etcd.io/<token> ``` ## 啟動集群 默認情況下,CoreOS Vagrantfile 將會啟動單機。 我們需要復制并修改 config.rb.sample 文件. 復制文件 ```bash cp config.rb.sample config.rb ``` 修改集群配置參數 num_instances為3。 啟動集群 ```bash vagrant up => Bringing machine 'core-01' up with 'virtualbox' provider... Bringing machine 'core-02' up with 'virtualbox' provider... Bringing machine 'core-03' up with 'virtualbox' provider... ==> core-01: Box 'coreos-alpha' could not be found. Attempting to find and install... core-01: Box Provider: virtualbox core-01: Box Version: >= 0 ==> core-01: Adding box 'coreos-alpha' (v0) for provider: virtualbox core-01: Downloading: http://storage.core-os.net/coreos/amd64-usr/alpha/coreos_production_vagrant.box core-01: Progress: 46% (Rate: 6105k/s, Estimated time remaining: 0:00:16) ``` 添加 ssh 的公匙 ```bash ssh-add ~/.vagrant.d/insecure_private_key ``` 連接集群中的第一臺機器 ```bash vagrant ssh core-01 -- -A ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看