 OpenShift Container Platform 3.11 CLI 参考. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.7.1. create 4.7.2. replace 4.7.3. process 4.7.4. run 4.7.5. patch 4.7.6. policy 4.7.7. secrets 4.7.8. autoscale 6.2. create-kubeconfig 5.6.3. create-api-client-config 5.7. 高级 CLI 操作 5.7.1. create-bootstrap-project-template 5.7.2. create-bootstrap-policy-file 5.7.3. create-login-template 5.7.4. create-node-config com (openshift) Password: ****** Login successful. 3 You don't have any projects. You can try to create a new project, by running $ oc new-project OpenShift Container Platform 3.11 CLI 参考. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.7.1. create 4.7.2. replace 4.7.3. process 4.7.4. run 4.7.5. patch 4.7.6. policy 4.7.7. secrets 4.7.8. autoscale 6.2. create-kubeconfig 5.6.3. create-api-client-config 5.7. 高级 CLI 操作 5.7.1. create-bootstrap-project-template 5.7.2. create-bootstrap-policy-file 5.7.3. create-login-template 5.7.4. create-node-config com (openshift) Password: ****** Login successful. 3 You don't have any projects. You can try to create a new project, by running $ oc new-project- 4 Welcome to OpenShift! See 'oc help' 0 码力 | 45 页 | 737.95 KB | 1 年前3
 OpenShift Container Platform 4.10 CLI 工具(openshift) Username: user1 Password: 3 Login successful. You don't have any projects. You can try to create a new project, by running oc new-project OpenShift Container Platform 4.10 CLI 工具(openshift) Username: user1 Password: 3 Login successful. You don't have any projects. You can try to create a new project, by running oc new-project- Welcome! See 'oc help' to get started help OpenShift Container Platform 4.10 CLI 工具 工具 12 使用--help标志获取有关特定CLI命令的帮助信息: 示例: 示例:获 获取 取oc create命令的帮助信息 命令的帮助信息 输 输出示例 出示例 使用oc explain命令查看特定资源的描述信息和项信息: 示例: 示例:查 查看 看 Pod 资 资源的文档 源的文档 输 输出示例 new project new-app Create a new application ... $ oc create --help Create a resource by filename or stdin JSON and YAML formats are accepted. Usage: oc create -f FILENAME [flags] ... $ 0 码力 | 120 页 | 1.04 MB | 1 年前3
 OpenShift Container Platform 4.8 CLI 工具(openshift) Username: user1 Password: 3 Login successful. You don't have any projects. You can try to create a new project, by running oc new-project OpenShift Container Platform 4.8 CLI 工具(openshift) Username: user1 Password: 3 Login successful. You don't have any projects. You can try to create a new project, by running oc new-project- Welcome! See 'oc help' to get started help OpenShift Container Platform 4.8 CLI 工具 工具 12 使用--help标志获取有关特定CLI命令的帮助信息: 示例: 示例:获 获取 取oc create命令的帮助信息 命令的帮助信息 输 输出示例 出示例 使用oc explain命令查看特定资源的描述信息和项信息: 示例: 示例:查 查看 看 Pod 资 资源的文档 源的文档 输 输出示例 new project new-app Create a new application ... $ oc create --help Create a resource by filename or stdin JSON and YAML formats are accepted. Usage: oc create -f FILENAME [flags] ... $ 0 码力 | 152 页 | 1.24 MB | 1 年前3
 OpenShift Container Platform 4.10 可伸缩性和性能 OpenShift Container Platform 4.10 可伸缩性和性能- kubeAPIQPS: - $ oc label machineconfigpool worker custom-kubelet=large-pods $ oc create -f change-maxPods-cr.yaml $ oc get kubeletconfig OpenShift Container Platform 4.10 可伸 可伸缩 缩性和性能 . $ oc create -f etcd-mc.yml machineconfig.machineconfiguration.openshift.io/98-var-lib-etcd created $ oc login -u ${ADMIN} -p ${ADMINPASSWORD} ${API} [... output omitted ...] $ oc create -f etcd-mc filesystem: root mode: 0644 path: /etc/sysctl.d/95-enable-rps.conf $ oc create -f enable-rfs.yaml $ oc get mc $ oc delete mc 50-enable-rfs OpenShift Container Platform 4.10 0 码力 | 315 页 | 3.19 MB | 1 年前3
 OpenShift Container Platform 4.8 日志记录理自己的日志的潜在反馈循环,这可能会导致内存和日志消息大小问题。在这个版本中解决了这 个问题,它会从集合中排除收集器日志。(LOG-1774) 在此次更新之前,Elasticsearch 会生成错误 Unable to create PersistentVolumeClaim due to forbidden: exceeded quota: infra-storage-quota.(如果 PVC 已存在)。在这个版本 中,Elasticsearch FIPS 更新后无法启动。在这个版本 中,Elasticsearch Pod 可以成功启动。(LOG-1974) 在此次更新之前,Elasticsearch 会生成错误 "Unable to create PersistentVolumeClaim due due: exceeded: infra-storage-quota."(如果 PVC 已存在)。在这个版本中,Elasticsearch 会检查现 OpenShift Container Platform 4.8 日志 日志记录 记录 40 在此次更新之前,如果持久性卷声明(PVC)已存在,Elasticsearch 会生成错误,"Unable to create PersistentVolumeClaim due due: exceeded quota: infra-storage-quota。" 在这个版本 中,Elasticsearch 会检查现有的0 码力 | 223 页 | 2.28 MB | 1 年前3 OpenShift Container Platform 4.8 日志记录理自己的日志的潜在反馈循环,这可能会导致内存和日志消息大小问题。在这个版本中解决了这 个问题,它会从集合中排除收集器日志。(LOG-1774) 在此次更新之前,Elasticsearch 会生成错误 Unable to create PersistentVolumeClaim due to forbidden: exceeded quota: infra-storage-quota.(如果 PVC 已存在)。在这个版本 中,Elasticsearch FIPS 更新后无法启动。在这个版本 中,Elasticsearch Pod 可以成功启动。(LOG-1974) 在此次更新之前,Elasticsearch 会生成错误 "Unable to create PersistentVolumeClaim due due: exceeded: infra-storage-quota."(如果 PVC 已存在)。在这个版本中,Elasticsearch 会检查现 OpenShift Container Platform 4.8 日志 日志记录 记录 40 在此次更新之前,如果持久性卷声明(PVC)已存在,Elasticsearch 会生成错误,"Unable to create PersistentVolumeClaim due due: exceeded quota: infra-storage-quota。" 在这个版本 中,Elasticsearch 会检查现有的0 码力 | 223 页 | 2.28 MB | 1 年前3
 OpenShift Container Platform 4.2 镜像io/rhscl/ruby-25-rhel7:latest ${MIRROR_ADDR}/rhscl/ruby- 25-rhel7:latest 3. 在集群的镜像配置对象中,为镜像添加所需的可信 CA: $ oc create configmap registry-config --from- file=${MIRROR_ADDR_HOSTNAME}..5000=$path/ca.crt -n openshift-config 工具随附功能强大的生成工具,可加快新 S2I 镜像的创建过程。s2i create 命令生成所有必要的 S2I 脚本和测试工具以及 Makefile: $ s2i create _ OpenShift Container Platform 4.2 镜像io/rhscl/ruby-25-rhel7:latest ${MIRROR_ADDR}/rhscl/ruby- 25-rhel7:latest 3. 在集群的镜像配置对象中,为镜像添加所需的可信 CA: $ oc create configmap registry-config --from- file=${MIRROR_ADDR_HOSTNAME}..5000=$path/ca.crt -n openshift-config 工具随附功能强大的生成工具,可加快新 S2I 镜像的创建过程。s2i create 命令生成所有必要的 S2I 脚本和测试工具以及 Makefile: $ s2i create _- _ _ - _ 所生成的 test/run 脚本必须经过调整才可使用,但它为开始开发提供了一个良好起点。 注意 注意 由 s2i create 命令生成的 test/run 脚本要求示例应用程序源位于 test/test-app 目录中。 第 第 4 章 章 创 创建 建镜 镜像 像 25 4.3.3. 本地测试 本地运行 S2I 镜像测试的最简单方法是使用所生成的 Makefile。 如果未使用 s2i create 命令,则可复制以下 Makefile 模板,并将 IMAGE_NAME 参数替换为您的镜像名 称。 Makefile 示例 示例 IMAGE_NAME = openshift/ruby-20-centos7 0 码力 | 92 页 | 971.35 KB | 1 年前3
 OpenShift Container Platform 4.14 镜像的说明来覆盖 Cluster Samples Operator 默认配置,以便最初以 Removed 的形式出现。 您必须将以下额外 YAML 文件放到由 openshift-install create manifest 创建的 openshift 目录中: 带有 有 managementState: Removed 的 的 Cluster Samples Operator YAML 文件示例: mirror registry.redhat.io/rhscl/ruby-25-rhel7:latest ${MIRROR_ADDR}/rhscl/ruby- 25-rhel7:latest $ oc create configmap registry-config --from- file=${MIRROR_ADDR_HOSTNAME}..5000=$path/ca.crt -n openshift-config 生成脚本和工具 S2I 工具随附功能强大的生成工具,可加快新 S2I 镜像的创建过程。s2i create 命令生成所有必要的 S2I 脚本和测试工具以及 Makefile: 所生成的 test/run 脚本必须经过调整才可使用,但它为开始开发提供了一个良好起点。 注意 注意 由 s2i create 命令生成的 test/run 脚本要求示例应用程序源位于 test/test-app 目录中。0 码力 | 118 页 | 1.13 MB | 1 年前3 OpenShift Container Platform 4.14 镜像的说明来覆盖 Cluster Samples Operator 默认配置,以便最初以 Removed 的形式出现。 您必须将以下额外 YAML 文件放到由 openshift-install create manifest 创建的 openshift 目录中: 带有 有 managementState: Removed 的 的 Cluster Samples Operator YAML 文件示例: mirror registry.redhat.io/rhscl/ruby-25-rhel7:latest ${MIRROR_ADDR}/rhscl/ruby- 25-rhel7:latest $ oc create configmap registry-config --from- file=${MIRROR_ADDR_HOSTNAME}..5000=$path/ca.crt -n openshift-config 生成脚本和工具 S2I 工具随附功能强大的生成工具,可加快新 S2I 镜像的创建过程。s2i create 命令生成所有必要的 S2I 脚本和测试工具以及 Makefile: 所生成的 test/run 脚本必须经过调整才可使用,但它为开始开发提供了一个良好起点。 注意 注意 由 s2i create 命令生成的 test/run 脚本要求示例应用程序源位于 test/test-app 目录中。0 码力 | 118 页 | 1.13 MB | 1 年前3
 OpenShift Container Platform 4.7 镜像的说明来覆盖 Cluster Samples Operator 默认配置,以便最初以 Removed 的形式出现。 您必须将以下额外 YAML 文件放到由 openshift-install create manifest 创建的 openshift 目录中: 带有 有 managementState: Removed 的 的 Cluster Samples Operator YAML 文件示例: mirror registry.redhat.io/rhscl/ruby-25-rhel7:latest ${MIRROR_ADDR}/rhscl/ruby- 25-rhel7:latest $ oc create configmap registry-config --from- file=${MIRROR_ADDR_HOSTNAME}..5000=$path/ca.crt -n openshift-config 该源是否成功转换成了可运行的容器镜像。示例应用程序应简单,但也应执行 assemble 和 run 脚本的关 键步骤。 4.4.2. 生成脚本和工具 S2I 工具随附功能强大的生成工具,可加快新 S2I 镜像的创建过程。s2i create 命令生成所有必要的 S2I 脚本和测试工具以及 Makefile: #!/bin/bash pushd ${HOME} if [ -d deps ]; then # all deps0 码力 | 123 页 | 1.20 MB | 1 年前3 OpenShift Container Platform 4.7 镜像的说明来覆盖 Cluster Samples Operator 默认配置,以便最初以 Removed 的形式出现。 您必须将以下额外 YAML 文件放到由 openshift-install create manifest 创建的 openshift 目录中: 带有 有 managementState: Removed 的 的 Cluster Samples Operator YAML 文件示例: mirror registry.redhat.io/rhscl/ruby-25-rhel7:latest ${MIRROR_ADDR}/rhscl/ruby- 25-rhel7:latest $ oc create configmap registry-config --from- file=${MIRROR_ADDR_HOSTNAME}..5000=$path/ca.crt -n openshift-config 该源是否成功转换成了可运行的容器镜像。示例应用程序应简单,但也应执行 assemble 和 run 脚本的关 键步骤。 4.4.2. 生成脚本和工具 S2I 工具随附功能强大的生成工具,可加快新 S2I 镜像的创建过程。s2i create 命令生成所有必要的 S2I 脚本和测试工具以及 Makefile: #!/bin/bash pushd ${HOME} if [ -d deps ]; then # all deps0 码力 | 123 页 | 1.20 MB | 1 年前3
 OpenShift Container Platform 4.6 网络openshift-ingress-operator get ingresscontrollers NAME AGE default 10m $ oc --namespace openshift-ingress create secret tls custom-certs-default --cert=tls.crt -- key=tls.key $ oc patch --type=merge --namespace endpointPublishingStrategy: type: LoadBalancerService loadBalancer: scope: Internal 3 $ oc create -f OpenShift Container Platform 4.6 网络openshift-ingress-operator get ingresscontrollers NAME AGE default 10m $ oc --namespace openshift-ingress create secret tls custom-certs-default --cert=tls.crt -- key=tls.key $ oc patch --type=merge --namespace endpointPublishingStrategy: type: LoadBalancerService loadBalancer: scope: Internal 3 $ oc create -f- -ingress-controller.yaml 1 $ oc --all-namespaces=true get ingresscontrollers  第 第 6 mode: 0644 overwrite: true contents: source: data:,sctp $ oc create -f load-sctp-module.yaml 第 第 8 章 章 在裸机集群中使用流控制 在裸机集群中使用流控制传输协议 传输协议 (SCTP) 53 3. 可选: 要在 MachineConfig 0 码力 | 256 页 | 2.78 MB | 1 年前3
 OpenShift Container Platform 4.9 网络ECDHE-ECDSA-AES128-GCM-SHA256 Min TLS Version: VersionTLS11 Type: Custom ... $ oc create configmap router-ca-certs-default --from-file=ca-bundle.pem=client-ca.crt -n openshift-config 第 openshift-ingress-operator get ingresscontrollers NAME AGE default 10m $ oc --namespace openshift-ingress create secret tls custom-certs-default --cert=tls.crt -- key=tls.key $ oc patch --type=merge --namespace endpointPublishingStrategy: type: LoadBalancerService loadBalancer: scope: Internal 3 $ oc create -f OpenShift Container Platform 4.9 网络ECDHE-ECDSA-AES128-GCM-SHA256 Min TLS Version: VersionTLS11 Type: Custom ... $ oc create configmap router-ca-certs-default --from-file=ca-bundle.pem=client-ca.crt -n openshift-config 第 openshift-ingress-operator get ingresscontrollers NAME AGE default 10m $ oc --namespace openshift-ingress create secret tls custom-certs-default --cert=tls.crt -- key=tls.key $ oc patch --type=merge --namespace endpointPublishingStrategy: type: LoadBalancerService loadBalancer: scope: Internal 3 $ oc create -f- -ingress-controller.yaml 1 $ oc --all-namespaces=true get ingresscontrollers 第 第 6 章 章 0 码力 | 388 页 | 4.04 MB | 1 年前3
共 62 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













