OpenShift Container Platform 4.8 CLI 工具oc get -k dir/ # Return only the phase value of the specified pod. oc get -o template pod/web-pod-13je7 --template={{.status.phase}} # List resource information in custom columns. oc get pod test-pod com/openshift/ruby-hello-world#beta4 # Create an application based on a stored template, explicitly setting a parameter value oc new-app --template=ruby-helloworld-sample --param=MYSQL_USER=admin # Create an application --source-secret=yoursecret # Create an application based on a template file, explicitly setting a parameter value oc new-app --file=./example/myapp/template.json --param=MYSQL_USER=admin # Search all templates0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 4.4 构建(build)withCluster() { openshift.withProject() { openshift.selector("all", [ template : templateName ]).delete() 5 if (openshift.selector("secrets", templateName).exists()) 服务器上创建了作业实例。 启动了 slave Pod(如果管道需要)。 管道在 slave Pod 上运行;如果不需要 slave,则管道在 master上运行。 将删除之前创建的具有 template=nodejs-mongodb-example 标签的所有资源。 从 nodejs-mongodb-example 模板创建一个新应用程序及其所有相关资源。 使用 nodejs-mongodb-example metadata: name: sample-custom-build labels: name: sample-custom-build annotations: template.alpha.openshift.io/wait-for-ready: 'true' spec: strategy: type: Custom customStrategy:0 码力 | 101 页 | 1.12 MB | 1 年前3
OpenShift Container Platform 4.13 CI/CDwithCluster() { openshift.withProject() { openshift.selector("all", [ template : templateName ]).delete() 5 if (openshift.selector("secrets", templateName).exists()) 在 Jenkins 服务器上创建了作业实例。 如果管道需要,启动一个代理 pod。 管道在代理 Pod 上运行,如果不需要代理,则管道在 master 上运行。 将删除之前创建的具有 template=nodejs-mongodb-example 标签的所有资源。 从 nodejs-mongodb-example 模板创建一个新应用程序及其所有相关资源。 使用 nodejs-mongodb-example metadata: name: sample-custom-build labels: name: sample-custom-build annotations: template.alpha.openshift.io/wait-for-ready: 'true' 第 第 2 章 章 构 构建( 建(BUILD) ) 55 1 指定项目的名称。 2. 创建 BuildConfig:0 码力 | 129 页 | 1.37 MB | 1 年前3
OpenShift Container Platform 4.14 机器管理5 machine.openshift.io/cluster-api-machineset: - - 6 template: metadata: labels: machine.openshift.io/cluster-api-cluster: 使用统计的机器集参数 的机器集参数 安装程序为 Alibaba Cloud 集群创建的默认计算机器集包括 Alibaba Cloud 用来跟踪用量统计的 nonessential 标签值。这些标签在 spec.template.spec.providerSpec.value 列表的 securityGroups、tag 和 vSwitch 参数中填充。 在创建部署额外机器的计算机器集时,必须包含所需的 Kubernetes 哪些标签。 spec.template.spec.providerSpec.value.securityGroups 中的 中的标签 可选:即使计算机器集中没有指定,也会应用该标签。 必需。 其中: 是基础架构 ID,它基于您在置备集群时设定的集群 ID。 是要添加的节点标签。 spec.template.spec.providerSpec 0 码力 | 277 页 | 4.37 MB | 1 年前3
OpenShift Container Platform 4.14 镜像private-registry secret/private-registry $ oc get secret/pull-secret -n openshift-config --template='{{index .data ".dockerconfigjson" | base64decode}}' >1 OpenShift Container openshift.io/generated-by: OpenShiftNewApp labels: app: ruby-sample-build template: application-template-stibuild name: origin-ruby-sample 1 namespace: test spec: {} status: dockerImageRepository: apiVersion: apps/v1 kind: Deployment metadata: name: mysql namespace: myproject spec: replicas: 1 template: metadata: annotations: alpha.image.policy.openshift.io/resolve-names: '*' 0 码力 | 118 页 | 1.13 MB | 1 年前3
OpenShift Container Platform 4.2 镜像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: 列出参数: $ oc process --parameters -f或者,如果模板已上传: $ oc process --parameters -n <template_name> 例如,下面显示了在默认 openshift 项目中列出其中一个 Quickstart 模板的参数时的输出: $ oc process --parameters -n openshift 或者,如果模板已上传到当前项目: $ oc process <template_name> 2. 通过处理模板并将输出传送至 oc create 来从模板创建对象: $ oc process -f | oc create -f - 或者,如果模板已上传到当前项目: $ oc process <template> | oc create -f - 3. 您可以为每个要覆盖的 0 码力 | 92 页 | 971.35 KB | 1 年前3
OpenShift Container Platform 4.7 镜像private-registry secret/private-registry $ oc get secret/pull-secret -n openshift-config --template='{{index .data ".dockerconfigjson" | base64decode}}' >1 $ oc registry login openshift.io/generated-by: OpenShiftNewApp labels: app: ruby-sample-build template: application-template-stibuild name: origin-ruby-sample 1 namespace: test spec: {} status: dockerImageRepository: apiVersion: apps/v1 kind: Deployment metadata: name: mysql namespace: myproject spec: replicas: 1 template: metadata: annotations: alpha.image.policy.openshift.io/resolve-names: '*' 0 码力 | 123 页 | 1.20 MB | 1 年前3
OpenShift Container Platform 4.10 CLI 工具oc get -k dir/ # Return only the phase value of the specified pod oc get -o template pod/web-pod-13je7 --template={{.status.phase}} # List resource information in custom columns oc get pod test-pod com/openshift/ruby-hello-world#beta4 # Create an application based on a stored template, explicitly setting a parameter value oc new-app --template=ruby-helloworld-sample --param=MYSQL_USER=admin # Create an application --source-secret=yoursecret # Create an application based on a template file, explicitly setting a parameter value oc new-app --file=./example/myapp/template.json --param=MYSQL_USER=admin # Search all templates0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift Container Platform 4.13 CLI 工具oc get -k dir/ # Return only the phase value of the specified pod oc get -o template pod/web-pod-13je7 --template={{.status.phase}} # List resource information in custom columns oc get pod test-pod com/openshift/ruby-hello-world#beta4 # Create an application based on a stored template, explicitly setting a parameter value oc new-app --template=ruby-helloworld-sample --param=MYSQL_USER=admin # Create an application --source-secret=yoursecret # Create an application based on a template file, explicitly setting a parameter value oc new-app --file=./example/myapp/template.json --param=MYSQL_USER=admin # Search all templates0 码力 | 128 页 | 1.11 MB | 1 年前3
OpenShift Container Platform 4.13 虚拟化OPENSHIFT VIRTUALIZATION 架 架构 构 11 表 表 2.5. ssp-operator 组 组件 件 组 组件 件 描述 描述 deployment/virt-template-validator 检查从模板创建的虚拟机上 vm.kubevirt.io/validations 注解,并在它们无效时 拒绝它们。 2.7. 关于 TEKTON-TASKS-OPERATOR 13 虚 虚拟 拟化 化 12 组 组件 件 描述 描述 deployment/create-vm-from-template 从模板创建虚拟机。 deployment/copy-template 复制虚拟机模板。 deployment/modify-vm-template 创建和删除虚拟机模板。 deployment/modify-data-object 创建和删除数据卷或数据源。 元素 元素 描述 描述 模板 模板项 项目列表 目列表 选择模板所在的项目。 默认情况下,红帽模板存储在 openshift 项目中。您可以在 Overview → Settings → Template project 标签页中编辑模板项目。 All items|Default templates 点 Default templates 以仅显示默认模板。 第 第 4 章 章 WEB 控制台概述0 码力 | 393 页 | 4.53 MB | 1 年前3
共 56 条
- 1
- 2
- 3
- 4
- 5
- 6













