openshift ansibe 自动部署后,oc cluster status 查看发现是not running

本文介绍occlusterup命令,用于管理本地OpenShift集群的all-in-one部署。解析如何使用该命令启动、停止及检查集群状态,适用于Docker主机上的OpenShift集群操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

如题,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).

 

参考链接https://github.com/openshift/origin/issues/17851

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值