OpenShift 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.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.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.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 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 myapp expecting binary input oc new-app --strategy=docker --binary --name myapp # Create a Ruby application based on the provided [image]~[source code] combination oc new-app centos/ruby-25-centos7~https://github0 码力 | 152 页 | 1.24 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 年前3OpenShift Container Platform 4.2 镜像
_APPLICATION_IMAGE_NAME>_ 3. 可选:如果支持 save-artifacts,请再次运行第 2 步,验证保存和恢复工件是否正常工作。 4. 运行容器: 如果使用 Podman,请运行以下命令: OpenShift Container Platform 4.2 镜 镜像 像 26 $ podman run _ APPLICATION_IMAGE_NAME>_ E_NAME>_ 如果使用 Docker,请运行以下命令: $ docker run _ APPLICATION_IMAGE_NAME>_ 5. 验证容器是否正在运行,应用程序是否有所反应。 通常,运行这些步骤便足以说明构建程序镜像是否按预期工作。 4.3.5. 使用 OpenShift Container Platform 构建镜像 有了 Dockerfile 和组成新 creationTimestamp: 2017-09-29T13:33:49Z generation: 1 labels: app: ruby-sample-build template: application-template-stibuild name: origin-ruby-sample 1 namespace: test resourceVersion: "633" selflink: 0 码力 | 92 页 | 971.35 KB | 1 年前3OpenShift Container Platform 3.11 开始使用
Middleware 还整合了大量 OpenShift Container Platform 模板。 XPaaS 服务提供的技术包括: JBoss EAP 6 提供的 Java EE 6 Application Server 由 JBoss Fuse 和 JBoss A-MQ 提供的集成和消息服务 由 JBoss Data Grid 提供的数据网格服务 JBoss BRMS 提供的实时决定服务 Webhooks & Services。 7. 点击 Add webhook。 8. 将 webhook URL 粘贴到 Payload URL 字段。 9. 将 Content Type 设置为 application/json。 10. 点击 Add webhook。 GitHub 现在会尝试向 OpenShift Container Platform 服务器发送 ping 有效负载,以确保通信成功。如果 ru的示例应用程序源代码。 2. 在您的应用程序中进行代码更改是可见的。例如: 在第 229 行中,将标题由 Welcome to your Ruby application on OpenShift 改为 This is my Awesome OpenShift Application,然后保 存改变。 3. 使用 git 提交更改,并将更改推送至您的 fork。 如果您正确配置了 webhook,则应用程序会0 码力 | 24 页 | 290.05 KB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4