使用 Open shift origin 开发的最佳方式:VM 或本地安装
The best way of develop with Open shift origin: VM or local installation
开放班次起源的最佳发展方式是什么?是用vm还是本地安装?我已尝试安装虚拟机,但无法登录虚拟机。用于登录 fedora vm 的默认凭据是什么。
默认凭据
根据您遵循的路线(见下文),可能有也可能没有 真实 授权。
如果你有 AllowAllPasswordIdentityProvider,你可以使用 test/test 或其他任何东西。
如果您使用二进制版本(见下文),这就是您默认拥有的版本。我改为 HTPasswdPasswordIdentityProvider。
对于其他选项,我认为您将拥有一个名为 system 的用户,其密码为 admin 随设置一起提供。
Docker容器版本
You can quickly get OpenShift running in a Docker container using
images from Docker Hub on a Linux system. This method is supported on
Fedora, CentOS, and Red Hat Enterprise Linux (RHEL) hosts only.
Link: https://docs.openshift.org/latest/getting_started/administrators.html#running-in-a-docker-container
根据原始人的说法,此设置(还)不是一个完整的示例,但非常容易上手。您应该能够按照说明立即启动一体化实例并 运行。但是,这种方法无法教您如何创建集群(master(s) 和 node(s))
Vagrant 虚拟机
This image is based off of OpenShift Origin and is a fully functioning
OpenShift instance with an integrated Docker registry. The intent of
this project is to allow Web developers and other interested parties
to run OpenShift V3 on their own computer. Given the way it is
configured, the VM will appear to your local machine as if it was
running somewhere off the machine.
The OpenShift Master, Node, Docker Registry, and other pieces are running in one VM. Given it's focus on application developers, it should NOT be used in production.
Link: https://www.openshift.org/vm
二元期权
Red Hat periodically publishes binaries to GitHub, which you can
download on the OpenShift Origin Releases page.
Link: https://github.com/openshift/origin/releases
这是我目前关注的选项。您下载二进制文件,安装 GO,然后设置 OC 客户端工具。下一步生成配置文件并开始添加系统组件(路由器,...)。
关注此页面以了解基础知识:
Link: https://github.com/openshift/origin/blob/master/examples/sample-app/README.md
Ansible 路由
对于生产安装,您可能希望通过 Ansible 安装集群。
我的谦虚建议是,一旦您通过手动配置获得了一些经验(请参阅上一点),就可以这样做。不过,让我们听听一些更有经验的人吧。
Link: https://docs.openshift.org/latest/install_config/install/index.html
一般文档
启动 Centos.7 VM,下载最新的 origin 工具:
wget https://github.com/openshift/origin/releases/download/v1.3.0-alpha.2/openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit.tar.gz
tar xzvf openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit.tar.gz
ln -s /root/openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit/oc /usr/local/bin/oc
chmod 755 /root/openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit/oc
启动你的单节点源集群:
oc cluster up --use-existing-config --host-data-dir=/var/tmp/etcd
使用提供的说明登录。
开放班次起源的最佳发展方式是什么?是用vm还是本地安装?我已尝试安装虚拟机,但无法登录虚拟机。用于登录 fedora vm 的默认凭据是什么。
默认凭据 根据您遵循的路线(见下文),可能有也可能没有 真实 授权。
如果你有 AllowAllPasswordIdentityProvider,你可以使用 test/test 或其他任何东西。
如果您使用二进制版本(见下文),这就是您默认拥有的版本。我改为 HTPasswdPasswordIdentityProvider。
对于其他选项,我认为您将拥有一个名为 system 的用户,其密码为 admin 随设置一起提供。
Docker容器版本
You can quickly get OpenShift running in a Docker container using images from Docker Hub on a Linux system. This method is supported on Fedora, CentOS, and Red Hat Enterprise Linux (RHEL) hosts only.
Link: https://docs.openshift.org/latest/getting_started/administrators.html#running-in-a-docker-container
根据原始人的说法,此设置(还)不是一个完整的示例,但非常容易上手。您应该能够按照说明立即启动一体化实例并 运行。但是,这种方法无法教您如何创建集群(master(s) 和 node(s))
Vagrant 虚拟机
This image is based off of OpenShift Origin and is a fully functioning OpenShift instance with an integrated Docker registry. The intent of this project is to allow Web developers and other interested parties to run OpenShift V3 on their own computer. Given the way it is configured, the VM will appear to your local machine as if it was running somewhere off the machine.
The OpenShift Master, Node, Docker Registry, and other pieces are running in one VM. Given it's focus on application developers, it should NOT be used in production.
Link: https://www.openshift.org/vm
二元期权
Red Hat periodically publishes binaries to GitHub, which you can download on the OpenShift Origin Releases page.
Link: https://github.com/openshift/origin/releases
这是我目前关注的选项。您下载二进制文件,安装 GO,然后设置 OC 客户端工具。下一步生成配置文件并开始添加系统组件(路由器,...)。
关注此页面以了解基础知识: Link: https://github.com/openshift/origin/blob/master/examples/sample-app/README.md
Ansible 路由
对于生产安装,您可能希望通过 Ansible 安装集群。
我的谦虚建议是,一旦您通过手动配置获得了一些经验(请参阅上一点),就可以这样做。不过,让我们听听一些更有经验的人吧。
Link: https://docs.openshift.org/latest/install_config/install/index.html
一般文档
启动 Centos.7 VM,下载最新的 origin 工具:
wget https://github.com/openshift/origin/releases/download/v1.3.0-alpha.2/openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit.tar.gz
tar xzvf openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit.tar.gz
ln -s /root/openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit/oc /usr/local/bin/oc
chmod 755 /root/openshift-origin-client-tools-v1.3.0-alpha.2-983578e-linux-64bit/oc
启动你的单节点源集群:
oc cluster up --use-existing-config --host-data-dir=/var/tmp/etcd
使用提供的说明登录。