OpenShift 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 --api-group=extensions # Print the supported API versions oc api-versions # Apply the configuration in pod.json to a pod. oc apply -f ./pod.json # Apply resources from a directory containing stdin to a pod. cat pod.json | oc apply -f - # Note: --prune is still in Alpha # Apply the configuration in manifest.yaml that matches label app=nginx and delete all the other resources that are not0 码力 | 152 页 | 1.24 MB | 1 年前3
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 --api-group=extensions # Print the supported API versions oc api-versions # Apply the configuration in pod.json to a pod oc apply -f ./pod.json # Apply resources from a directory containing stdin to a pod cat pod.json | oc apply -f - # Note: --prune is still in Alpha # Apply the configuration in manifest.yaml that matches label app=nginx and delete all other resources that are not in0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift 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命令查看特定资源的描述信息和项信息: apply edit-last-applied 编辑资源/对象的最新 last-applied-configuration 注解 用法示例 用法示例 2.7.1.6. oc apply set-last-applied 设置 live 对象上的 last-applied-configuration 注释,以匹配文件的内容。 用法示例 用法示例 2.7.1.7. oc apply view-last-applied view-last-applied 查看资源/对象最新的最后应用配置注解 # Apply the configuration in pod.json to a pod oc apply -f ./pod.json # Apply resources from a directory containing kustomization.yaml - e.g. dir/kustomization0 码力 | 128 页 | 1.11 MB | 1 年前3
OpenShift 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 年前3
OpenShift 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 年前3
OpenShift Container Platform 4.10 构建应用程序使用 Web 控制台或 CLI 编辑项目配置资源。 使用 Web 控制台: i. 导航至 Administration → Cluster Settings 页面。 ii. 单击 Configuration 以查看所有配置资源。 $ oc adm create-bootstrap-project-template -o yaml > template.yaml $ oc create -f 使用 Web 控制台或 CLI 编辑项目配置资源。 使用 Web 控制台: i. 导航至 Administration → Cluster Settings 页面。 ii. 单击 Configuration 以查看所有配置资源。 iii. 找到 Project 的条目,并点击 Edit YAML。 使用 CLI: i. 以具有 cluster-admin 特权的用户身份登录。 ii. 视图中,点 Samples 标题查看 Samples 页面。 2. 在 Samples 页面中,选择一个可用的示例应用程序来查看 Create Sample Application 表单。 3. 在 Create Sample Application Form 中: 在 Name 字段中,部署名称会被默认显示。您可以根据需要修改此名称。 在 Builder Image Version 中,会默认选择一个构建器镜像。您可以使用0 码力 | 198 页 | 3.62 MB | 1 年前3
OpenShift Container Platform 4.8 安装: true 来禁用默认目录的源: 提示 提示 或者,您可以使用 Web 控制台管理目录源。在 Administration → Cluster Settings → Global Configuration → OperatorHub 页面中,点 Sources 选项卡,其中可创建、删除、禁用和启用单独的 源。 4.7.11. OpenShift Container Platform 的 Telemetry AWS::CloudFormation::Interface: ParameterGroups: - Label: default: "Network Configuration" Parameters: - VpcCidr 第 第 4 章 章 在 在 AWS 上安装 上安装 269 - SubnetBits - Label: Parameters: - ClusterName - InfrastructureName - Label: default: "Network Configuration" Parameters: - VpcId - PublicSubnets - PrivateSubnets - Label:0 码力 | 2586 页 | 27.37 MB | 1 年前3
OpenShift Container Platform 4.10 监控openshift-monitoring 项目中的 cluster-monitoring-config ConfigMap 对象: b. 将您的配置以键值对: configuration> 的形式添加 到 data/config.yaml 下: $ oc apply -f user-workload-monitoring-config.yaml $ oc -n openshift-monitoring namespace: openshift-monitoring OpenShift Container Platform 4.10 监 监控 控 14 1 相应地替换 和 <configuration_for_the_component>。 以下示例 ConfigMap 对象为 Prometheus 配置持久性卷声明(PVC)。这与只监控 OpenShift Container Platform config ConfigMap 对象: b. 将您的配置以键值对 : configuration> 的形式添加 到 data/config.yaml 下: 相应地替换 和 <configuration_for_the_component>。 以下示例 ConfigMap 对象为 Prometheus 配置数据保留周期和最低容器资源请求。这与 0 码力 | 135 页 | 1.58 MB | 1 年前3
OpenShift Container Platform 4.9 构建应用程序使用 Web 控制台或 CLI 编辑项目配置资源。 使用 Web 控制台: i. 导航至 Administration → Cluster Settings 页面。 ii. 单击 Configuration 以查看所有配置资源。 $ oc adm create-bootstrap-project-template -o yaml > template.yaml $ oc create -f 使用 Web 控制台或 CLI 编辑项目配置资源。 使用 Web 控制台: i. 导航至 Administration → Cluster Settings 页面。 ii. 单击 Configuration 以查看所有配置资源。 iii. 找到 Project 的条目,并点击 Edit YAML。 使用 CLI: i. 以具有 cluster-admin 特权的用户身份登录。 ii. 视图中,点 Samples 标题查看 Samples 页面。 2. 在 Samples 页面中,选择一个可用的示例应用程序来查看 Create Sample Application 表单。 3. 在 Create Sample Application Form 中: 在 Name 字段中,部署名称会被默认显示。您可以根据需要修改此名称。 在 Builder Image Version 中,会默认选择一个构建器镜像。您可以使用0 码力 | 184 页 | 3.36 MB | 1 年前3
OpenShift Container Platform 4.10 安装user1-alicloud-openshift- machine-api-alibabacloud-credentials 2022/02/11 16:18:29 Saved credentials configuration to: user1- alicloud/manifests/openshift-machine-api-alibabacloud-credentials-credentials.yaml 所需的配置参数 所需的配置参数 下表描述了所需的安装配置参数: 表 表 4.1. 所需的参数 所需的参数 2022/02/11 16:18:29 Saved credentials configuration to: user1- alicloud/manifests/openshift-machine-api-alibabacloud-credentials-credentials.yaml true,则不会获得卸载的性能优势,因为主机网络堆栈会处理 出口流量。 启 启用 用 IPSec 的 的 OVN-Kubernetes 配置示例 配置示例 kubeProxyConfig object configuration kubeProxyConfig 对象的值在下表中定义: 表 表 4.14. kubeProxyConfig object 字段 字段 类 类型 型 描述 描述 defaultNetwork:0 码力 | 3142 页 | 33.42 MB | 1 年前3
共 48 条
- 1
- 2
- 3
- 4
- 5













