mac 安装 openshift

1. 概述

使用minishift的方式在本地安装openshift

2. 配置xhyve Driver

Minishift is currently tested against docker-machine-driver-xhyve version 0.3.3.

Use the following command to install the latest version of the driver with Homebrew:

$ brew install docker-machine-driver-xhyve

Once installed, enable root access for the docker-machine-driver-xhyve binary and add it to the default wheel group:

$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-
driver-xhyve/bin/docker-machine-driver-xhyve

Set the owner User ID (SUID) for the binary as follows:

$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

3. 安装minishift

  • 工程链接 Mnishift Github Release Page
  • macos包 minishift-1.17.0-darwin-amd64.tgz.
    可以先下载macos包并解压
wget https://github.com/minishift/minishift/releases/download/v1.17.0/minishift-1.17.0-darwin-amd64.tgz && tar xvf  minishift-1.17.0-darwin-amd64.tgz && cd minishift-1.17.0-darwin-amd64 

4. 初始化openshift

./minishift start

5.命令行登入

oc login -u system:admin https://192.168.64.2:8443

6.网页登入

首先关闭服务

minishift stop

启动为页面版

minishift console
  • 访问账户:system/admin 或 developer/developer
  • 地址: https://192.168.64.2:8443/console/

7. 启用插件

Minishift 预置了若干插件来按需对虚拟机内部运行的 OpenShift Origin 进行个性化。

使用以下命令查看当前插件的启用状态:

$ minishift addon list

使用以下命令启用一个插件,例如我想要启用 anyuid 插件:

$ minishift addon enable anyuid

你可能感兴趣的:(mac 安装 openshift)