用于创建openshift集群的powershift命令插件。

powershift-cluster的Python项目详细描述


此包为powershift命令行客户端提供插件 用于管理本地openshift集群。这些命令提供了一个 oc cluster up命令,增加了轻松维护 运行在 码头服务。

为了增强安全性,还将配置用户数据库,以便 可以更改开发人员帐户的默认密码。附加用户 还可以创建帐户,必要时具有系统管理权限。

最后,一组持久卷也将与每个 轮廓。还可以声明其他持久卷,包括 预先声明的卷与主机上的现有目录关联 包含代码或数据文件的。

要安装这个包,以及powershift-cli包和 powershift该包中包含的命令行程序,您应该 使用pip安装包powershift-cluster[cli],而不是 只要powershift-cluster。或者,您可以安装 powershift-cli[all],它将安装powershift-cli包 以及当前可用于powershift命令的所有插件 线路程序。

有关如何安装powershift命令行程序的详细信息 以及可用的插件请参见:

可用命令

要查看所有可用的命令,可以使用 powershift command

$ powershift
Usage: powershift [OPTIONS] COMMAND [ARGS]...

  PowerShift client for OpenShift.

  This client provides additional functionality useful to users of the
  OpenShift platform. Base functionality is minimal, but can be extended by
  installing additional plugins.

  For more details see:

      https://github.com/getwarped/powershift

Options:
  --help  Show this message and exit.

Commands:
  client      Install/update oc command line tool.
  cluster     Manage a local OpenShift cluster.
  completion  Output completion script for specified shell.
  console     Open a browser on the OpenShift web console.
  server      Displays the URL for the OpenShift cluster.
  session     Display information about current session.

$ powershift cluster
Usage: powershift cluster [OPTIONS] COMMAND [ARGS]...

  Manage a local OpenShift cluster.

  The OpenShift cluster will run as an all-in-one container on a local
  Docker host. Data will be preserved between restarts of the OpenShift
  cluster against a named profile. You can create multiple profiles so that
  you can setup multiple local OpenShift instances. You can though only run
  one instance at a time.

  The default routes for exposed applications in the OpenShift cluster will
  use xip.io and the local host IP of your OpenShift cluster. A different
  route suffix can be supplied when the OpenShift cluster is started up the
  first time.

Options:
  --help  Show this message and exit.

Commands:
  destroy  Destroys the named OpenShift cluster.
  down     Stops the active OpenShift cluster.
  list     List the available OpenShift cluster...
  ssh      Opens a shell session in the OpenShift master...
  status   Displays the status of the OpenShift cluster.
  up       Starts up an OpenShift cluster.
  users    Manage accounts database for the cluster.
  volumes  Manage persistent volumes for the cluster.

$ powershift cluster volumes
Usage: powershift cluster volumes [OPTIONS] COMMAND [ARGS]...

  Manage persistent volumes for the cluster.

Options:
  --help  Show this message and exit.

Commands:
  create  Create a new persistent volume.
  list    List the available peristent volumes.

$ powershift cluster users
Usage: powershift cluster users [OPTIONS] COMMAND [ARGS]...

  Manage accounts database for the cluster.

Options:
  --help  Show this message and exit.

Commands:
  add     Adds a new user account.
  list    List active user accounts.
  passwd  Change the password for an account.
  remove  Removes a user account.

对单个命令使用--help选项来查看命令 以及可以提供哪些进一步的选项。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java传递实现接口的内部类   java为什么managedbean方法在post请求中的过滤器调用之前调用   java Android应用程序在Android M,O上崩溃,登录A/libc时出错:tid 17938中的致命信号11(SIGSEGV),代码2,故障地址0x343a2944   java JPA存储库。findByAll()返回null,但数据库中存在所有内容   用于发送电子邮件的java Ant脚本   Java小程序HTML页面发生了奇怪的事情   在Postman的请求正文中传递多个JSON数据,并使用Jersy(JXRS)进入Java Rest API   无法强制转换java DAO类   10分钟后重新连接java   正则表达式如何在java中选择字符串直到某个字符   java我的输出有一些问题   Objective中的java时间段   java如何在新屏幕上基于按钮单击在webview中打开url   java哪个selenium版本与Firefox ESR 45.2.0兼容   java无法使用Apache Camel 3.1.0将XML转换为JSON