OpenShift Container Platform 4.10 CLI 工具
Log in to a server new-project Request a new project new-app Create a new application ... $ oc create --help Create a resource by filename or stdin JSON and YAML formats are accepted com/myimage:mysql* docker.io/myrepository/myimage # Copy image to disk, creating a directory structure that can be served as a registry oc image mirror myregistry.com/myimage:latest file://myrepos Create an application based on the source code in the current git repository (with a public remote) and a container image oc new-app . --image=registry/repo/langimage # Create an application myapp with0 码力 | 120 页 | 1.04 MB | 1 年前3OpenShift Container Platform 4.8 CLI 工具
Log in to a server new-project Request a new project new-app Create a new application ... $ oc create --help Create a resource by filename or stdin JSON and YAML formats are accepted com/myimage:mysql* docker.io/myrepository/myimage # Copy image to disk, creating a directory structure that can be served as a registry oc image mirror myregistry.com/myimage:latest file://myrepos Create an application based on the source code in the current git repository (with a public remote) and a Docker image oc new-app . --docker-image=registry/repo/langimage # Create an application myapp0 码力 | 152 页 | 1.24 MB | 1 年前3OpenShift Container Platform 4.13 CLI 工具
Log in to a server new-project Request a new project new-app Create a new application ... OpenShift Container Platform 4.13 CLI 工具 工具 14 输 输出示例 出示例 使用oc explain命令查看特定资源的描述信息和项信息: com/myimage:mysql* docker.io/myrepository/myimage # Copy image to disk, creating a directory structure that can be served as a registry oc image mirror myregistry.com/myimage:latest file://myrepos Create an application based on the source code in the current git repository (with a public remote) and a container image oc new-app . --image=registry/repo/langimage # Create an application myapp with0 码力 | 128 页 | 1.11 MB | 1 年前3OpenShift Container Platform 4.7 日志记录
Kubernetes pod 标签从应用程序收集日志数据并将其发送到特定的 日志存储。您可以通过在 ClusterLogForwarder 自定义资源 (CR) YAML 文件中配置 inputs[].application.selector.matchLabels 元素来收集日志数据。您还可以按命名空间过滤收 集的日志数据。(LOG-883) 此发行版本将以下新的 ElasticsearchNodeDiskWatermarkReached Logging 汇总整个集群中的这些 日志,并将其存储在默认日志存储中。您可以使用 Kibana web 控制台来视觉化日志数据。 OpenShift Logging 聚合了以下类型的日志: application - 由集群中运行的用户应用程序生成的容器日志(基础架构容器应用程序除外)。 infrastructure - 在集群和 OpenShift Container Platform 节点上运行的基础架构组件生成的日 managementState: "Managed" 2 logStore: type: "elasticsearch" 3 retentionPolicy: 4 application: maxAge: 1d infra: maxAge: 7d audit: maxAge: 7d elasticsearch:0 码力 | 183 页 | 1.98 MB | 1 年前3OpenShift Container Platform 4.8 日志记录
Logging 汇总整个集群中的这些 日志,并将其存储在默认日志存储中。您可以使用 Kibana web 控制台来视觉化日志数据。 OpenShift Logging 聚合了以下类型的日志: application - 由集群中运行的用户应用程序生成的容器日志(基础架构容器应用程序除外)。 infrastructure - 在集群和 OpenShift Container Platform 节点上运行的基础架构组件生成的日 managementState: "Managed" 2 logStore: type: "elasticsearch" 3 retentionPolicy: 4 application: maxAge: 1d infra: maxAge: 7d audit: maxAge: 7d elasticsearch: managementState: "Managed" 2 logStore: type: "elasticsearch" 3 retentionPolicy: 4 application: maxAge: 1d infra: maxAge: 7d audit: maxAge: 7d elasticsearch:0 码力 | 223 页 | 2.28 MB | 1 年前3OpenShift Container Platform 4.10 构建应用程序
视图中,点 Samples 标题查看 Samples 页面。 2. 在 Samples 页面中,选择一个可用的示例应用程序来查看 Create Sample Application 表单。 3. 在 Create Sample Application Form 中: 在 Name 字段中,部署名称会被默认显示。您可以根据需要修改此名称。 在 Builder Image Version 中,会默认选择一个构建器镜像。您可以使用 字段覆盖运行应用程序的命令。 6. 在 General 部分中: a. 在 Application 字段中输入应用程序组别的唯一名称,例如 myapp。确保应用程序名称在命 OpenShift Container Platform 4.10 构 构建 建应 应用程序 用程序 18 a. 在 Application 字段中输入应用程序组别的唯一名称,例如 myapp。确保应用程序名称在命 名空间中具有唯一性。 管道。选择了默认管道,但您可以从应用程序的可用管道列表中选择所需的管道。 9. 可选: 在 Advanced Options 部分中,默认选择 Target port 和 Create a route to the application,以便您可以使用公开的 URL 访问应用程序。 如果您的应用程序没有在默认公共端口(80)上公开其数据,请清除复选框,并设置您想要公开 的目标端口号。 10. 可选:可以使用以下高级选项进一步自定义应用程序:0 码力 | 198 页 | 3.62 MB | 1 年前3OpenShift Container Platform 4.9 构建应用程序
视图中,点 Samples 标题查看 Samples 页面。 2. 在 Samples 页面中,选择一个可用的示例应用程序来查看 Create Sample Application 表单。 3. 在 Create Sample Application Form 中: 在 Name 字段中,部署名称会被默认显示。您可以根据需要修改此名称。 在 Builder Image Version 中,会默认选择一个构建器镜像。您可以使用 使用 Builder Image Version 下拉菜单指定版本。 b. 可选: 使用 Edit import 策略来选择不同的策略。 6. 在 General 部分中: a. 在 Application 字段中输入应用程序组别的唯一名称,例如 myapp。确保应用程序名称在命 名空间中具有唯一性。 b. 系统会基于 Git 存储库的 URL 自动填充 Name 字段,以标识为此应用程序创建的资源(如果 Pipeline,然后点 Show Pipeline Visualization 来查看应用程序的 管道。 9. Advanced Options 部分中默认选中 Create a route to the application,以便您可以使用公开的 URL 访问应用程序。如果不想通过公共路由公开您的应用程序,可以清除此复选框。 10. 可选:可以使用以下高级选项进一步自定义应用程序: 路由 点击 Routing0 码力 | 184 页 | 3.36 MB | 1 年前3OpenShift Container Platform 4.14 镜像
2>/dev/null)" ]; then mv /tmp/s2i/artifacts/* $HOME/. fi # move the application source mv /tmp/s2i/src $HOME/src # build application artifacts pushd ${HOME} make all OpenShift Container Platform 4.14 二进制文件。必要情况下,请遵循 S2I # install the artifacts make install popd #!/bin/bash # run the application /opt/application/run.sh #!/bin/bash pushd ${HOME} if [ -d deps ]; then # all deps contents to tar file:///path-to-sample-app __ _ APPLICATION_IMAGE_NAME>_ $ podman run application_image_name> $ docker run application_image_name> 第 第 4 章 章 创 创建 建镜 镜像 像 35 第 5 章 管理镜像 0 码力 | 118 页 | 1.13 MB | 1 年前3OpenShift Container Platform 4.7 镜像
the application source mv /tmp/s2i/src $HOME/src # build application artifacts pushd ${HOME} make all # install the artifacts make install popd #!/bin/bash # run the application /opt/application/run file:///path-to-sample-app __ _ APPLICATION_IMAGE_NAME>_ $ podman run application_image_name> $ docker run application_image_name> OpenShift Container Platform 4.7 镜 openshift.io/generated-by: OpenShiftNewApp labels: app: ruby-sample-build template: application-template-stibuild name: origin-ruby-sample 1 namespace: test spec: {} status: dockerImageRepository: 0 码力 | 123 页 | 1.20 MB | 1 年前3OpenShift Container Platform 4.2 Service Mesh 的安装、使用和发行注记信息
- other-namespace apiVersion: console.openshift.io/v1 kind: ConsoleLink metadata: name: application-menu-link-1 spec: href: 'https://www.example.com' location: ApplicationMenu text: Link 1 failed: Try the steps again. success: Your Spring application is running. title: Run the Spring application conclusion: >- Your Spring application is deployed and ready. 1 OpenShift Container Platform kind: ConsoleQuickStart metadata: name: spring-with-s2i spec: description: 'Import a Spring Application from git, build, and deploy it onto OpenShift.' 1 ... 第 第 8 章 章 在 在 WEB 控制台中 控制台中创 创建快速 建快速启动0 码力 | 44 页 | 651.51 KB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4