如題,oc cluster up 是all-in-one的部署使用的。ansible自動部署成功後,不需要用oc cluster status查看。總感覺這樣有些矛盾。
[root@master001 ~]# oc cluster -h
Manage a local OpenShift cluster
The OpenShift cluster will run as an all-in-one container on a Docker host. The Docker host may be a local VM (ie. using
docker-machine on OS X and Windows clients), remote machine, or the local Unix host.
Use the 'up' command to start a new cluster on a docker host.
To use an existing Docker connection, ensure that Docker commands are working and that you can create new containers.
Default routes are setup using nip.io and the host ip of your cluster. To use a different routing suffix, use the
--routing-suffix flag.
Usage:
oc cluster ACTION [flags]
Available Commands:
add Add components to an 'oc cluster up' cluster
down Stop OpenShift on Docker
status Show OpenShift on Docker status
up Start OpenShift on Docker with reasonable defaults
Use "oc <command> --help" for more information about a given command.
Use "oc options" for a list of global command-line options (applies to all commands).