OpenShift Container Platform 4.14 机器管理
vpcId: "" zoneId:21 $ oc get -o jsonpath='{.status.infrastructureName}{"\n"}' infrastructure cluster 第 第 2 章 章 使用 使用 MACHINE API 管理 管理计 计算机器 算机器 9 16 18 20 17 19 21 1 2 要列出集群中的计算机器集,请运行以下命令: 输出示例 出示例 b. 要查看特定计算机器集自定义资源 (CR) 的值,请运行以下命令: 输出示例 出示例 $ oc get machinesets -n openshift-machine-api NAME DESIRED CURRENT READY AVAILABLE AGE -east-1f 0 0 55m $ oc get machineset \ -n openshift-machine-api -o yaml apiVersion: machine.openshift.io/v1beta1 kind: MachineSet metadata: 0 码力 | 277 页 | 4.37 MB | 1 年前3OpenShift Container Platform 4.10 虚拟化
个虚拟机可能会失败。(BZ#1989527) 作为临时解决方案,您可以通过在存储配置集清单中设置 spec.cloneStrategy: copy 来执行 主机辅助副本。例如: $ oc annotate --overwrite -n openshift-cnv hyperconverged kubevirt-hyperconverged kubevirt.kubevirt.io/jsonpatch='[ { "op": ceph-mgr 来清除虚拟机克隆。 未授权用户无法在虚 虚拟 拟机网 机网络 络接口 接口选项卡上使用添加网络接口按钮。(BZ#2056420) $ oc annotate --overwrite -n openshift-cnv hco kubevirt-hyperconverged 'networkaddonsconfigs.kubevirt.io/jsonpatch=[ { "op": kubevirt-hyperconverged namespace: openshift-cnv spec: $ oc apply -f.yaml $ watch oc get csv -n openshift-cnv NAME DISPLAY VERSION REPLACES 0 码力 | 307 页 | 3.45 MB | 1 年前3OpenShift Container Platform 4.13 虚拟化
来清除虚拟机克隆。 如果您停止集群中的节点,然后使用 Node Health Check Operator 来启动节点,到 Multus 的连 $ oc annotate --overwrite -n openshift-cnv hyperconverged kubevirt-hyperconverged \ kubevirt.kubevirt.io/jsonpatch='[{"op": "add" kubevirt-hyperconverged namespace: openshift-cnv spec: $ oc apply -f.yaml $ watch oc get csv -n openshift-cnv NAME DISPLAY VERSION REPLACES oc delete HyperConverged kubevirt-hyperconverged -n openshift-cnv $ oc delete subscription kubevirt-hyperconverged -n openshift-cnv $ oc delete csv -n openshift-cnv -l operators.coreos.com/kubevirt-hyperconverged 0 码力 | 393 页 | 4.53 MB | 1 年前3OpenShift Container Platform 4.6 节点
标记来查看 pod IP 地址和 pod 所在的节点。 输 输出示例 出示例 $ oc project$ oc get pods $ oc get pods -n openshift-console NAME READY STATUS RESTARTS AGE console-698d866b78-bnshf 166m 10.129.0.23 ip-10-0-173- 237.ec2.internal $ oc adm top pods $ oc adm top pods -n openshift-console NAME CPU(cores) MEMORY(bytes) console-7f58c69899-q8c8k maxUnavailable: 25% 2 selector: 3 matchLabels: foo: bar $ oc create -f -n spec: template: metadata: name: critical-pod priorityClassName: sys 0 码力 | 404 页 | 3.60 MB | 1 年前3OpenShift Container Platform 4.14 镜像
redhat.io": { "auth": "NTE3Njg5Nj...", "email": "you@example.com" } } } $ echo -n ': ' | base64 -w0 1 BGVtbYk3ZHAtqXs= "auths": { " ": { 1 安装过程中,Cluster Samples Operator 的状态被设置为 Removed。如果您将其改为 Managed,它会安装示例。 $ oc get is -n openshift -o json | jq .spec.tags[].from.name | grep registry.redhat.io $ oc image mirror registry 25-rhel7:latest $ oc create configmap registry-config --from- file=${MIRROR_ADDR_HOSTNAME}..5000=$path/ca.crt -n openshift-config $ oc patch image.config.openshift.io/cluster --patch '{"spec":{"additionalTrustedCA": 0 码力 | 118 页 | 1.13 MB | 1 年前3OpenShift Container Platform 4.2 镜像
Secret 页面下载 registry.redhat.io 的 pull secret。 2. 为您的镜像 registry 生成 base64 编码的用户名和密码或令牌: $ echo -n ': ' | base64 -w0 1 BGVtbYk3ZHAtqXs= 通过 和 指定 registry 的用户名和密码。 角色的用户访问集群。 为您的镜像 registry 创建 pull secret。 流程 流程 1. 访问被镜像(mirror)的特定镜像流的镜像,例如: $ oc get is -n openshift -o json | jq .spec.tags[].from.name | grep registry.redhat.io 2. 来自 registry.redhat.io CA: $ oc create configmap registry-config --from- file=${MIRROR_ADDR_HOSTNAME}..5000=$path/ca.crt -n openshift-config $ oc patch image.config.openshift.io/cluster --patch '{"spec":{"additionalTrustedCA": 0 码力 | 92 页 | 971.35 KB | 1 年前3OpenShift Container Platform 4.7 镜像
的用户名和密码。 3. 以 JSON 格式创建您的 pull secret 副本: C:\> oc$ echo $PATH $ oc $ echo -n ' : ' | base64 -w0 1 BGVtbYk3ZHAtqXs= $ cat ./pull-secret.text | jq . > OCAL_REPOSITORY}:${OCP_RELEASE}- ${ARCHITECTURE}" $ openshift-install $ oc get is -n openshift -o json | jq .spec.tags[].from.name | grep registry.redhat.io 第 第 3 章 章 使用 使用带 带有 有备 备用 25-rhel7:latest $ oc create configmap registry-config --from- file=${MIRROR_ADDR_HOSTNAME}..5000=$path/ca.crt -n openshift-config $ oc patch image.config.openshift.io/cluster --patch '{"spec":{"additionalTrustedCA": 0 码力 | 123 页 | 1.20 MB | 1 年前3OpenShift Container Platform 4.10 安装
redhat.io": { "auth": "NTE3Njg5Nj...", "email": "you@example.com" } } } $ echo -n ': ' | base64 -w0 1 BGVtbYk3ZHAtqXs= "auths": { " ": { 1 redhat.io": { "auth": "NTE3Njg5Nj...", "email": "you@example.com" } } } $ echo -n ' : ' | base64 -w0 1 BGVtbYk3ZHAtqXs= "auths": { " ": { 1 headsOnly: false packages: - name: elasticsearch- operator startingVersio n: '2.4.0' 第 第 3 章 章 断开 断开连 连接的安装 接的安装镜 镜像 像 59 mirror.operators.headsOnly 在下载频道 HEAD 和完整频道间切换。无 法与 0 码力 | 3142 页 | 33.42 MB | 1 年前3OpenShift Container Platform 4.13 安装
S (6 4 位 位 A R M ) A zu re (6 4 位 位 x8 6) A zu re (6 4 位 位 A R M ) A zu re St ac k H u b G C P N ut an ix R H O S P R H V 裸 裸 机 机 (6 4 位 位 x8 6) 裸 裸 机 机 (6 4 位 位 A R M ) vS p h er e V M C IB ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ 网 络 自 定 义 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ R es tri ct e d n et w or k ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ 私 有 集 群 ✓ ✓ ✓ ✓ ✓ ✓ ✓ OpenShift S (6 4 位 位 A R M ) A zu re (6 4 位 位 x8 6) A zu re (6 4 位 位 A R M ) A zu re St ac k H u b G C P N ut an ix R H O S P R H V 裸 裸 机 机 (6 4 位 位 x8 6) 裸 裸 机 机 (6 4 位 位 A R M ) vS p h er e V M C IB0 码力 | 4634 页 | 43.96 MB | 1 年前3OpenShift Container Platform 4.13 网络
Platform 新安装都有一个名为 cluster 的 network.config 对象。 流程 流程 使用 oc describe 命令查看集群网络配置: 输出示例 $ oc get -n openshift-network-operator deployment/network-operator NAME READY UP-TO-DATE AVAILABLE 的问题,但在解决这个问题前需要应用一个临时解决方 案。您可以将 DNS Operator 的 managementState 字段设置为 Unmanaged 以应用临时解决方 案。 $ oc get -n openshift-dns-operator deployment/dns-operator NAME READY UP-TO-DATE AVAILABLE AGE 未定义或无效,则配置映射只包括默认服务器。 验证 验证 1. 查看配置映射: 基于以上 DNS 示例的 DNS ConfigMap 示例 $ oc get configmap/dns-default -n openshift-dns -o yaml apiVersion: v1 data: Corefile: | example.com:5353 { forward . 10 码力 | 697 页 | 7.55 MB | 1 年前3
共 61 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7