OpenShift Container Platform 4.13 网络Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics$ oc exec -n openshift-ovn-kubernetes -it ovnkube-master-mk6p6 \ -c northd -- ovn-sbctl show Chassis "8ca57b28-9834-45f0-99b0-96486c22e1be" hostname: ip-10-0-156-16.ec2.internal Encap geneve additional_chassis : [] additional_encap : [] chassis : [] datapath : 3f1a4928-7ff5-471f-9092-fe5f5c67d15c encap : [] external_ids : {} gateway_chassis : 0 码力 | 697 页 | 7.55 MB | 1 年前3
OpenShift Container Platform 4.13 CI/CDLinux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics Maven 构建 Java 应用程序时,可以设置通过私钥访问的 Maven Central 或 JCenter 的私 有镜像。要从该私有镜像下载库,您必须提供以下内容: 1. 配置了镜像的 URL 和连接设置的 settings.xml 文件。 2. 设置文件中引用的私钥,例如 ~/.ssh/id_rsa。 为安全起见,不应在应用程序镜像中公开您的凭证。 示例中描述的是 Java 应用程序,但您可以使用相同的方法将 secret,构建会默认使用命名空间中的 pull secret。 2.3.7. 外部工件 (artifact) 建议不要将二进制文件存储在源存储库中。因此,您必须定义一个构建,在构建过程中拉取其他文件,如 Java .jar 依赖项。具体方法取决于使用的构建策略。 对于 Source 构建策略,必须在 assemble 脚本中放入适当的 shell 命令: .s2i/bin/assemble 文件 文件0 码力 | 129 页 | 1.37 MB | 1 年前3
OpenShift Container Platform 4.7 镜像Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics 设置环境变量的最佳做法是使用 ENV 指令设置环境变量。一个例子是设置项目版本。这让人可以无需通 过查看 Dockerfile 便可轻松找到版本。另一示例是在系统上公告可供其他进程使用的路径,如 JAVA_HOME。 避免默认密码 避免设置默认密码。许多人扩展镜像时会忘记删除或更改默认密码。如果在生产环境中的用户被分配了众 所周知的密码,则这可能引发安全问题。可以使用环境变量来配置密码。 如果 ,服务还会为请求提供负载均衡。 提供通用库 对于要运行由第三方提供的应用程序代码的镜像,请确保您的镜像包含适用于您的平台的通用库。特别要 为平台使用的通用数据库提供数据库驱动程序。例如,在创建 Java 框架镜像时,要为 MySQL 和 PostgreSQL 提供 JDBC 驱动程序。这样做可避免在应用程序汇编期间下载通用依赖项,从而加快应用程 序镜像构建。此外还简化了应用程序开发人员为确保满足所有依赖项而需要做的工作。0 码力 | 123 页 | 1.20 MB | 1 年前3
OpenShift Container Platform 4.2 镜像Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics 设置环境变量的最佳做法是使用 ENV 指令设置环境变量。一个例子是设置项目版本。这让人可以无需通 过查看 Dockerfile 便可轻松找到版本。另一示例是在系统上公告可供其他进程使用的路径,如 JAVA_HOME。 避免默 避免默认 认密 密码 码 最好避免设置默认密码。很多人扩展镜像时会忘记删除或更改默认密码。如果在生产环境中的用户被分配 了众所周知的密码,则这可能引发安全问题。应该使用环境变量来使密码可以被配置。 提供负载均衡。 提供通用 提供通用库 库 对于要运行由第三方提供的应用程序代码的镜像,请确保您的镜像包含适用于您的平台的通用库。特别要 为平台使用的通用数据库提供数据库驱动程序。例如,在创建 Java 框架镜像时,要为 MySQL 和 PostgreSQL 提供 JDBC 驱动程序。这样做可避免在应用程序汇编期间下载通用依赖项,从而加快应用程 序镜像构建。此外还简化了应用程序开发人员为确保满足所有依赖项而需要做的工作。0 码力 | 92 页 | 971.35 KB | 1 年前3
OpenShift Container Platform 4.14 OperatorLinux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics OPERATOR SDK CLI 5.3. 基于 GO 的 OPERATOR 5.4. 基于 ANSIBLE 的 OPERATOR 5.5. 基于 HELM 的 OPERATOR 5.6. 基于 JAVA 的 OPERATOR 5.7. 定义集群服务版本(CSV) 5.8. 使用捆绑包镜像 5.9. 遵守 POD 安全准入 5.10. 云供应商上的 OPERATOR 的令牌身份验证 5.11 作为开发人员,您可以执行以下 Operator 任务: 安装 Operator SDK CLI。 创建 Go-based Operators, Ansible-based Operators, Java-based Operators, 和 Helm-based Operators。 使用 Operator SDK 来构建、测试并部署 Operator。 安装 Operator 并订阅命名空间。0 码力 | 423 页 | 4.26 MB | 1 年前3
OpenShift Container Platform 4.8 CLI 工具Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics DefaultDevfileRegistry java-maven Upstream Maven and OpenJDK 11 DefaultDevfileRegistry java-openliberty Java application Maven-built DefaultDevfileRegistry java-openliberty-gradle Java application Gradle-built stack using the Open Liberty r... DefaultDevfileRegistry java-quarkus Quarkus with Java0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 3.11 开始使用Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics Dancer Java OpenShift Container Platform 提供的其他镜像包括: MySQL MongoDB PostgreSQL Jenkins 另外,JBoss Middleware 还整合了大量 OpenShift Container Platform 模板。 XPaaS 服务提供的技术包括: JBoss EAP 6 提供的 Java EE 6 Application JBoss A-MQ 提供的集成和消息服务 由 JBoss Data Grid 提供的数据网格服务 JBoss BRMS 提供的实时决定服务 Tomcat 7 和 Tomcat 8 提供的 Java Web Server 3.0 第 第 4 章 章 使用 使用 WEB 控制台 控制台创 创建并 建并构 构建 建镜 镜像 像 11 用户可以使用这些服务的组合: 只使用 HTTP,或使用0 码力 | 24 页 | 290.05 KB | 1 年前3
OpenShift Container Platform 4.4 构建(build)Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics 中。您可以定义输入 secret 和输入配置映射来实现这一目的。 例如,在使用 Maven 构建 Java 应用程序时,可以设置通过私钥访问的 Maven Central 或 JCenter 的私 第 第 3 章 章 创 创建 建构 构建 建输 输入 入 19 例如,在使用 Maven 构建 Java 应用程序时,可以设置通过私钥访问的 Maven Central 或 JCenter 的私 有镜 配置了镜像的 URL 和连接设置的 settings.xml 文件。 2. 设置文件中引用的私钥,例如 ~/.ssh/id_rsa。 为安全起见,不应在应用程序镜像中公开您的凭证。 示例中描述的是 Java 应用程序,但您可以使用相同的方法将 SSL 证书添加到 /etc/ssl/certs 目录,以及 添加 API 密钥或令牌、许可证文件等。 3.6.1. 添加输入 secret 和配置映射0 码力 | 101 页 | 1.12 MB | 1 年前3
OpenShift Container Platform 4.14 镜像Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics Operator 将继续支持 S2I 构建器镜像和模板,并接受更新。S2I 镜像流和模板包括: Ruby Python Node.js Perl PHP HTTPD Nginx EAP Java Webserver .NET Go 从 OpenShift Container Platform 4.16 开始,Cluster Samples Operator 将停止管 理非 S2I 设置环境变量的最佳做法是使用 ENV 指令设置环境变量。一个例子是设置项目版本。这让人可以无需通 过查看 Dockerfile 便可轻松找到版本。另一示例是在系统上公告可供其他进程使用的路径,如 JAVA_HOME。 避免默 避免默认 认密 密码 码 避免设置默认密码。许多人扩展镜像时会忘记删除或更改默认密码。如果在生产环境中的用户被分配了众 所周知的密码,则这可能引发安全问题。可以使用环境变量来配置密码。0 码力 | 118 页 | 1.13 MB | 1 年前3
OpenShift Container Platform 4.9 构建应用程序Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics Platform 4.9 构 构建 建应 应用程序 用程序 16 导入 YAML:上传 YAML 文件,以创建并定义用于构建和部署应用程序的资源。 上传 JAR 文件:上传 JAR 文件以构建和部署 Java 应用。 请注意,特定的选项,如 Pipelines、Event Source 和 Import Virtual Machines 只在 OpenShift Pipelines Operator、OpenShift 链接,为您的应用程序添加自定义标签。 1. 点击 Create,以创建应用程序并在 Topology 视图中查看其构建状态。 3.1.4. 上传 JAR 文件以轻松部署 Java 应用程序 您可以使用 Developer 视角的 Topology 视图中的 JAR 文件来部署 Java 应用程序。您可以使用以下选 项上传 JAR 文件: 导航到 Developer 视角 的 +Add 视图,再单击 From Local Machine0 码力 | 184 页 | 3.36 MB | 1 年前3
共 75 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













