OpenShift Container Platform 4.8 CLI 工具mysql:latest --to myregistry.com/myimage:latest layer.tar.gz # Add a new layer to the image and store the result on disk # This results in $(pwd)/v2/mysql/blobs,manifests oc image append --from mysql:latest file://mysql:local layer.tar.gz # Add a new layer to the image and store the result on disk in a designated directory # This will result in $(pwd)/mysql-local/v2/mysql/blobs,manifests oc image append --from all .repo files from the image's /etc/yum.repos.d/ folder into the current directory oc image extract docker.io/library/centos:7 --path /etc/yum.repos.d/*.repo:. # Extract all .repo files from the0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 4.13 CLI 工具JSON passed into stdin to a pod cat pod.json | oc apply -f - # Apply the configuration from all files that end with '.json' - i.e. expand wildcard characters in file names oc apply -f '*.json' # to/id_rsa --from- literal=passphrase=topsecret # Create a new secret named my-secret from env files oc create secret generic my-secret --from-env-file=path/to/foo.env --from-env-file=path/to/bar.env kustomization.yaml - e.g. dir/kustomization.yaml oc delete -k dir # Delete resources from all files that end with '.json' - i.e. expand wildcard characters in file names oc delete -f '*.json' #0 码力 | 128 页 | 1.11 MB | 1 年前3
OpenShift Container Platform 4.10 CLI 工具to/id_rsa --from- literal=passphrase=topsecret # Create a new secret named my-secret from env files oc create secret generic my-secret --from-env-file=path/to/foo.env --from-env-file=path/to/bar.env 1.77. oc image extract 将文件从镜像复制到文件系统 用法示例 用法示例 # Add a new layer to the image and store the result on disk # This results in $(pwd)/v2/mysql/blobs,manifests oc image append --from mysql:latest file://mysql:local layer.tar.gz # Add a new layer to the image and store the result on disk in a designated directory # This will result in $(pwd)/mysql-local/v2/mysql/blobs,manifests oc image append --from0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift Container Platform 4.14 Operator文件系统操作。通过将目录复制到父目录的根目录,目录也可以包含在父目录中。 2.2.2.2. 模式 模式 # Ignore everything except non-object .json and .yaml files **/* !*.json !*.yaml **/objects/*.json **/objects/*.yaml catalog ├── packageA │ └── index.yaml Reconcile and its Result here: // - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile func (r *MemcachedReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { ctrl.Result{}, nil } // Error reading the object - requeue the request. log.Error(err, "Failed to get Memcached") return ctrl.Result{}, err0 码力 | 423 页 | 4.26 MB | 1 年前3
OpenShift Container Platform 4.14 更新集群You may force an update to a specific release image, but doing so might not be supported and might result in downtime or data loss. $ oc get nodes NAME STATUS ROLES AGE ImageDigestMirrorSet YAML 的目录。如果未设置,则会将该文件写入当前 目录中。 例如,以下命令可将 icsp.yaml 和 icsp-2.yaml 文件转换,并将新的 YAML 文件保存到 idms- files 目录中。 输出示例 出示例 2. 运行以下命令来创建 CR 对象: 其中:如果使用 --dest-dir 标志,请指定目录的路径。 icsp-2.yaml --dest-dir idms-files wrote ImageDigestMirrorSet to idms- files/imagedigestmirrorset_ubi8repo.5911620242173376087.yaml wrote ImageDigestMirrorSet to idms- files/imagedigestmirrorset_ubi9repo 0 码力 | 149 页 | 1.94 MB | 1 年前3
OpenShift Container Platform 4.13 虚拟化的驱动程序集 会被默认选择。 4. 安装完成后,选择 Finish。 5. 重启虚拟机。 验证 验证 1. 在 PC 上打开系统磁盘。这通常是 C:。 2. 进入到 Program Files → Virtio-Win。 如果 Virtio-Win 目录存在并包含每个驱动程序的子目录,则安装可以成功。 10.11.2.5. 将 将 VirtIO 驱动程序容器磁 程序容器磁盘添加到虚 MachineConfig 对象是否已添加。 输出示例 出示例 machineconfiguration.openshift.io/role: worker 1 storage: files: - path: /etc/modprobe.d/vfio.conf mode: 0644 overwrite: true contents: inline: status.result.avgLatencyNanoSec: "177000" status.result.maxLatencyNanoSec: "244000" 1 status.result.measurementDurationSec: "5" status.result.minLatencyNanoSec: "135000" status.result.sourceNode:0 码力 | 393 页 | 4.53 MB | 1 年前3
OpenShift Container Platform 4.4 安装.openshift.io/role: worker spec: config: ignition: version: 2.2.0 storage: files: - contents: source: data:text/plain;base64,e30K filesystem: root .openshift.io/role: master spec: config: ignition: version: 2.2.0 storage: files: - contents: source: data:text/plain;base64,e30K filesystem: root .openshift.io/role: worker spec: config: ignition: version: 2.2.0 storage: files: - contents: source: data:text/plain;base64,e30K 第 第 3 章 章 安装配置 安装配置 170 码力 | 40 页 | 468.04 KB | 1 年前3
OpenShift Container Platform 4.4 构建(build)输出示例 出示例 $ oc create configmap[options] $ ls example-files game.properties ui.properties $ cat example-files/game.properties enemies=aliens lives=3 enemies.cheat=true enemies.cheat $ cat example-files/ui.properties color.good=purple color.bad=yellow allow.textmode=true how.nice.to.look=fairlyNice $ oc create configmap game-config \ --from-file=example-files/ $ oc describe 728db1985 $ oc create configmap game-config-2 \ --from-file=example-files/game.properties \ --from-file=example-files/ui.properties $ oc get configmaps game-config-2 -o yaml apiVersion: v1 data: 0 码力 | 101 页 | 1.12 MB | 1 年前3
OpenShift Container Platform 4.7 安装ApiServerDnsName: Description: Full hostname of the API server, which is required for the Ignition config files. Value: !Join [".", ["api-int", !Ref ClusterName, !Ref HostedZoneName]] RegisterNlbIpTargetsLambda: ApiServerDnsName: Description: Full hostname of the API server, which is required for the Ignition config files. Value: !Join [".", ["api-int", !Ref ClusterName, !Ref HostedZoneName]] RegisterNlbIpTargetsLambda: --name files --account-name ${CLUSTER_NAME}sa -- account-key ${ACCOUNT_KEY} --public-access blob $ az storage blob upload --account-name ${CLUSTER_NAME}sa --account-key ${ACCOUNT_KEY} -c "files" -f "0 码力 | 2276 页 | 23.68 MB | 1 年前3
OpenShift Container Platform 4.8 安装ApiServerDnsName: Description: Full hostname of the API server, which is required for the Ignition config files. Value: !Join [".", ["api-int", !Ref ClusterName, !Ref HostedZoneName]] RegisterNlbIpTargetsLambda: ApiServerDnsName: Description: Full hostname of the API server, which is required for the Ignition config files. Value: !Join [".", ["api-int", !Ref ClusterName, !Ref HostedZoneName]] RegisterNlbIpTargetsLambda: --name files --account-name ${CLUSTER_NAME}sa -- account-key ${ACCOUNT_KEY} --public-access blob $ az storage blob upload --account-name ${CLUSTER_NAME}sa --account-key ${ACCOUNT_KEY} -c "files" -f "0 码力 | 2586 页 | 27.37 MB | 1 年前3
共 34 条
- 1
- 2
- 3
- 4













