 OpenShift Container Platform 4.9 网络"work-network", "type": "ipvlan", "master": "eth1", "mode": "l3", "ipam": { "type": "static", "addresses": [ { "address": "192.168.10.10/24" } ] } } 第 第 13 下表描述了静态 IP 地址分配的配置: 表 表 13.6. ipam 静 静态 态配置 配置对 对象 象 字段 字段 类 类型 型 描述 描述 type 字符串 字符串 IPAM 地址类型。值必须是 static。 addresses 数 数组 组 指定分配给虚拟接口的 IP 地址的对象数组。支持 IPv4 和 IPv6 IP 地址。 Routes 数 数组 组 指定要在 pod 中配置的路由的一组对象。 地址(DHCP)分配配置 分配配置 以下 JSON 描述了使用 DHCP 进行动态 IP 地址地址分配的配置。 DHCP 租期 租期续订 续订 { "ipam": { "type": "static", "addresses": [ { "address": "191.168.1.7/24" } ] } } OpenShift0 码力 | 388 页 | 4.04 MB | 1 年前3 OpenShift Container Platform 4.9 网络"work-network", "type": "ipvlan", "master": "eth1", "mode": "l3", "ipam": { "type": "static", "addresses": [ { "address": "192.168.10.10/24" } ] } } 第 第 13 下表描述了静态 IP 地址分配的配置: 表 表 13.6. ipam 静 静态 态配置 配置对 对象 象 字段 字段 类 类型 型 描述 描述 type 字符串 字符串 IPAM 地址类型。值必须是 static。 addresses 数 数组 组 指定分配给虚拟接口的 IP 地址的对象数组。支持 IPv4 和 IPv6 IP 地址。 Routes 数 数组 组 指定要在 pod 中配置的路由的一组对象。 地址(DHCP)分配配置 分配配置 以下 JSON 描述了使用 DHCP 进行动态 IP 地址地址分配的配置。 DHCP 租期 租期续订 续订 { "ipam": { "type": "static", "addresses": [ { "address": "191.168.1.7/24" } ] } } OpenShift0 码力 | 388 页 | 4.04 MB | 1 年前3
 OpenShift Container Platform 4.6 网络"work-network", "type": "ipvlan", "master": "eth1", "mode": "l3", "ipam": { "type": "static", "addresses": [ { "address": "192.168.10.10/24" } ] } } 第 第 11 type 字符串 字符串 IPAM 地址类型。值 dhcp 是必需的。 动态 动态 IP 地址 地址(DHCP)分配配置示例 分配配置示例 { "ipam": { "type": "static", "addresses": [ { "address": "191.168.1.7/24" } ] } } apiVersion: "type": "ipvlan", "master": "eth1", "mode": "l2", "ipam": { "type": "static", "addresses": [ { "address": "192.168.1.23/24" }0 码力 | 256 页 | 2.78 MB | 1 年前3 OpenShift Container Platform 4.6 网络"work-network", "type": "ipvlan", "master": "eth1", "mode": "l3", "ipam": { "type": "static", "addresses": [ { "address": "192.168.10.10/24" } ] } } 第 第 11 type 字符串 字符串 IPAM 地址类型。值 dhcp 是必需的。 动态 动态 IP 地址 地址(DHCP)分配配置示例 分配配置示例 { "ipam": { "type": "static", "addresses": [ { "address": "191.168.1.7/24" } ] } } apiVersion: "type": "ipvlan", "master": "eth1", "mode": "l2", "ipam": { "type": "static", "addresses": [ { "address": "192.168.1.23/24" }0 码力 | 256 页 | 2.78 MB | 1 年前3
 OpenShift Container Platform 4.13 网络"name": "ipvlan-net", "type": "ipvlan", "master": "eth1", "mode": "l3", "ipam": { "type": "static", "addresses": [ { "address": "192.168.10.10/24" } ] } } OpenShift 下表描述了静态 IP 地址分配的配置: 表 表 25.8. ipam 静 静态 态配置 配置对 对象 象 字段 字段 类 类型 型 描述 描述 type string IPAM 地址类型。值必须是 static。 addresses 数 数组 组 指定分配给虚拟接口的 IP 地址的对象数组。支持 IPv4 和 IPv6 IP 地址。 Routes 数 数组 组 指定要在 pod 中配置的路由的一组对象。 动态 IP 地址(DHCP)分配配置 以下 JSON 描述了使用 DHCP 进行动态 IP 地址地址分配的配置。 DHCP 租期续订 { "ipam": { "type": "static", "addresses": [ { "address": "191.168.1.7/24" } ] } } OpenShift0 码力 | 697 页 | 7.55 MB | 1 年前3 OpenShift Container Platform 4.13 网络"name": "ipvlan-net", "type": "ipvlan", "master": "eth1", "mode": "l3", "ipam": { "type": "static", "addresses": [ { "address": "192.168.10.10/24" } ] } } OpenShift 下表描述了静态 IP 地址分配的配置: 表 表 25.8. ipam 静 静态 态配置 配置对 对象 象 字段 字段 类 类型 型 描述 描述 type string IPAM 地址类型。值必须是 static。 addresses 数 数组 组 指定分配给虚拟接口的 IP 地址的对象数组。支持 IPv4 和 IPv6 IP 地址。 Routes 数 数组 组 指定要在 pod 中配置的路由的一组对象。 动态 IP 地址(DHCP)分配配置 以下 JSON 描述了使用 DHCP 进行动态 IP 地址地址分配的配置。 DHCP 租期续订 { "ipam": { "type": "static", "addresses": [ { "address": "191.168.1.7/24" } ] } } OpenShift0 码力 | 697 页 | 7.55 MB | 1 年前3
 OpenShift Container Platform 4.10 可伸缩性和性能指定一个策略: none.这个策略明确启用了现有的默认 CPU 关联性方案,从而不会出现超越调度程序自 动进行的关联性。这是默认策略。 static。此策略允许保证 pod 中的容器具有整数 CPU 请求。它还限制对节点上的专用 CPU 的访问。如果为 static,则需要使用一个小些 s。 可选的。指定 CPU Manager 协调频率。默认值为 5s。 5. 创建动态 kubelet 配置: matchLabels: custom-kubelet: cpumanager-enabled kubeletConfig: cpuManagerPolicy: static 1 cpuManagerReconcilePeriod: 5s 2 # oc create -f cpumanager-kubeletconfig.yaml # oc get machineconfig node/perf-node.example.com sh-4.2# cat /host/etc/kubernetes/kubelet.conf | grep cpuManager cpuManagerPolicy: static 1 cpuManagerReconcilePeriod: 5s 2 第 第 5 章 章 使用 使用 CPU MANAGER 和拓扑管理器 和拓扑管理器 53 2 在创建0 码力 | 315 页 | 3.19 MB | 1 年前3 OpenShift Container Platform 4.10 可伸缩性和性能指定一个策略: none.这个策略明确启用了现有的默认 CPU 关联性方案,从而不会出现超越调度程序自 动进行的关联性。这是默认策略。 static。此策略允许保证 pod 中的容器具有整数 CPU 请求。它还限制对节点上的专用 CPU 的访问。如果为 static,则需要使用一个小些 s。 可选的。指定 CPU Manager 协调频率。默认值为 5s。 5. 创建动态 kubelet 配置: matchLabels: custom-kubelet: cpumanager-enabled kubeletConfig: cpuManagerPolicy: static 1 cpuManagerReconcilePeriod: 5s 2 # oc create -f cpumanager-kubeletconfig.yaml # oc get machineconfig node/perf-node.example.com sh-4.2# cat /host/etc/kubernetes/kubelet.conf | grep cpuManager cpuManagerPolicy: static 1 cpuManagerReconcilePeriod: 5s 2 第 第 5 章 章 使用 使用 CPU MANAGER 和拓扑管理器 和拓扑管理器 53 2 在创建0 码力 | 315 页 | 3.19 MB | 1 年前3
 OpenShift Container Platform 4.10 CLI 工具part of the Kubernetes API and also some static files # You can get pods info with 'curl localhost:8001/api/v1/pods' oc proxy --www=/my/files --www-prefix=/static/ --api-prefix=/api/ # To proxy the 使用文件名或 stdin 替换资源 用法示例 用法示例 # Run a proxy to the Kubernetes API server on port 8011, serving static content from ./local/www/ oc proxy --port=8011 --www=./local/www/ # Run a proxy to the Kubernetes0 码力 | 120 页 | 1.04 MB | 1 年前3 OpenShift Container Platform 4.10 CLI 工具part of the Kubernetes API and also some static files # You can get pods info with 'curl localhost:8001/api/v1/pods' oc proxy --www=/my/files --www-prefix=/static/ --api-prefix=/api/ # To proxy the 使用文件名或 stdin 替换资源 用法示例 用法示例 # Run a proxy to the Kubernetes API server on port 8011, serving static content from ./local/www/ oc proxy --port=8011 --www=./local/www/ # Run a proxy to the Kubernetes0 码力 | 120 页 | 1.04 MB | 1 年前3
 OpenShift Container Platform 4.2 镜像命令向镜像流中添加标签: $ oc tag OpenShift Container Platform 4.2 镜像命令向镜像流中添加标签: $ oc tag- 例如:要将 ruby 镜像流 static-2.0标签配置为始终引用 ruby镜像流2.0 标签的当前镜像: $ oc tag ruby:2.0 ruby:static-2.0 这会在 ruby镜像流中创建名为 static-2.0 的新 imagestreamtag。运行 oc tag 时,新标签会直接 引用 ruby:2 0 码力 | 92 页 | 971.35 KB | 1 年前3
 OpenShift Container Platform 4.13 CLI 工具part of the Kubernetes API and also some static files # You can get pods info with 'curl localhost:8001/api/v1/pods' oc proxy --www=/my/files --www-prefix=/static/ --api-prefix=/api/ # To proxy the oc proxy --api-prefix=/custom/ # Run a proxy to the Kubernetes API server on port 8011, serving static content from ./local/www/ oc proxy --port=8011 --www=./local/www/ # Run a proxy to the Kubernetes0 码力 | 128 页 | 1.11 MB | 1 年前3 OpenShift Container Platform 4.13 CLI 工具part of the Kubernetes API and also some static files # You can get pods info with 'curl localhost:8001/api/v1/pods' oc proxy --www=/my/files --www-prefix=/static/ --api-prefix=/api/ # To proxy the oc proxy --api-prefix=/custom/ # Run a proxy to the Kubernetes API server on port 8011, serving static content from ./local/www/ oc proxy --port=8011 --www=./local/www/ # Run a proxy to the Kubernetes0 码力 | 128 页 | 1.11 MB | 1 年前3
 OpenShift Container Platform 4.8 CLI 工具part of the kubernetes api and also some static files. # You can get pods info with 'curl localhost:8001/api/v1/pods' oc proxy --www=/my/files --www-prefix=/static/ --api-prefix=/api/ # To proxy the oc proxy --api-prefix=/custom/ # Run a proxy to kubernetes apiserver on port 8011, serving static content from ./local/www/ oc proxy --port=8011 --www=./local/www/ # Run a proxy to kubernetes0 码力 | 152 页 | 1.24 MB | 1 年前3 OpenShift Container Platform 4.8 CLI 工具part of the kubernetes api and also some static files. # You can get pods info with 'curl localhost:8001/api/v1/pods' oc proxy --www=/my/files --www-prefix=/static/ --api-prefix=/api/ # To proxy the oc proxy --api-prefix=/custom/ # Run a proxy to kubernetes apiserver on port 8011, serving static content from ./local/www/ oc proxy --port=8011 --www=./local/www/ # Run a proxy to kubernetes0 码力 | 152 页 | 1.24 MB | 1 年前3
 OpenShift Container Platform 4.14 镜像标签表示,在导入源标签期间对目的地标签的元数据进行了更新。 流程 流程 您可使用 oc tag 命令向镜像流中添加标签: 例如:要将 ruby 镜像流 static-2.0标签配置为始终引用 ruby镜像流2.0 标签的当前镜像: 这会在 ruby 镜像流中创建名为 static-2.0 的新镜像流标签。运行 oc tag 时,新标签会直接引用 ruby:2.0 镜像流标签所指向的镜像 id,而所指向的镜像不会改变。 拉取(pull), 无需向容器运行时提供 --insecure-registry。 $ oc tag OpenShift Container Platform 4.14 镜像标签表示,在导入源标签期间对目的地标签的元数据进行了更新。 流程 流程 您可使用 oc tag 命令向镜像流中添加标签: 例如:要将 ruby 镜像流 static-2.0标签配置为始终引用 ruby镜像流2.0 标签的当前镜像: 这会在 ruby 镜像流中创建名为 static-2.0 的新镜像流标签。运行 oc tag 时,新标签会直接引用 ruby:2.0 镜像流标签所指向的镜像 id,而所指向的镜像不会改变。 拉取(pull), 无需向容器运行时提供 --insecure-registry。 $ oc tag- $ oc tag ruby:2.0 ruby:static-2.0 $ oc tag --alias=true - 第 第 5 章 章 管理 管理镜 镜像 像 37 5.2.4. 从镜像流中删除标签 您可以从镜像流中删除标签。 0 码力 | 118 页 | 1.13 MB | 1 年前3
 OpenShift Container Platform 4.7 镜像标签表示,在导入源标签期间对目的地标签的元数据进行了更新。 流程 您可使用 oc tag 命令向镜像流中添加标签: 例如:要将 ruby 镜像流 static-2.0标签配置为始终引用 ruby镜像流2.0 标签的当前镜像: 这会在 ruby 镜像流中创建名为 static-2.0 的新镜像流标签。运行 oc tag 时,新标签会直接引用 ruby:2.0 镜像流标签所指向的镜像 id,而所指向的镜像不会改变。 拉取(pull), 无需向容器运行时提供 --insecure-registry。 $ oc tag OpenShift Container Platform 4.7 镜像标签表示,在导入源标签期间对目的地标签的元数据进行了更新。 流程 您可使用 oc tag 命令向镜像流中添加标签: 例如:要将 ruby 镜像流 static-2.0标签配置为始终引用 ruby镜像流2.0 标签的当前镜像: 这会在 ruby 镜像流中创建名为 static-2.0 的新镜像流标签。运行 oc tag 时,新标签会直接引用 ruby:2.0 镜像流标签所指向的镜像 id,而所指向的镜像不会改变。 拉取(pull), 无需向容器运行时提供 --insecure-registry。 $ oc tag- $ oc tag ruby:2.0 ruby:static-2.0 $ oc tag --alias=true - OpenShift Container Platform 4.7 镜 镜像 像 38 5 0 码力 | 123 页 | 1.20 MB | 1 年前3
共 23 条
- 1
- 2
- 3













