OpenShift Container Platform 4.10 可伸缩性和性能
${API} ... output omitted ... $ oc create -f etcd-mc.yml machineconfig.machineconfiguration.openshift.io/98-var-lib-etcd created $ oc login -u ${ADMIN} -p ${ADMINPASSWORD} ${API} [... output omitted 站点和本地服务,以便所有部署都可以以最低的管理成本运行。它们 还需要一个简便的方法来部署和配置其集群的某些节点,以实现实时低延迟和高性能目的。低延迟节点对 于如 Cloud-native Network Functions(CNF)和 Data Plane Development Kit(DPDK) 等应用程序非 常有用。 OpenShift Container Platform 目前提供在 OpenShift oc apply -f qos-pod.yaml --namespace=qos-example $ oc get pod qos-demo --namespace=qos-example --output=yaml spec: containers: ... status: qosClass: Guaranteed OpenShift Container Platform 40 码力 | 315 页 | 3.19 MB | 1 年前3OpenShift Container Platform 4.14 Operator
--icon=./operator-icon.svg \ 4 --output yaml \ 5 >/index.yaml 6 $ opm render / / : \ 1 --output=yaml \ >> /index.yaml extract secret/pull-secret -n openshift-config --confirm $ cat .dockerconfigjson | \ jq --compact-output '.auths[" : / /"] |= . + {"auth":" "}' \ 1 > new_dockerconfigjson lsFile}, } #!/bin/bash set -x AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query "Account" --output text) OIDC_PROVIDER=$(oc get authentication cluster -ojson | jq -r .spec.serviceAccountIssuer | sed 0 码力 | 423 页 | 4.26 MB | 1 年前3OpenShift Container Platform 4.9 节点
cpu: 50m memory: 1250Mi requests: cpu: 25m memory: 262144k $ oc get vpa--output yaml ... status: ... recommendation: containerRecommendations: - containerName: frontend Deployment 1 name: frontend 2 updatePolicy: updateMode: "Off" 3 $ oc get vpa --output yaml OpenShift Container Platform 4.9 节 节点 点 44 1 2 3 4 注意 注意 在 VPA 可以决定推荐的资源前,pod 必须已在运行。 containerName: my-opt-sidecar mode: "Off" $ oc create -f .yaml $ oc get vpa --output yaml ... status: ... recommendation: containerRecommendations: - containerName: frontend 0 码力 | 374 页 | 3.80 MB | 1 年前3OpenShift Container Platform 4.6 节点
cpu: 50m memory: 1250Mi requests: cpu: 25m memory: 262144k $ oc get vpa--output yaml ... status: ... recommendation: containerRecommendations: - containerName: frontend Deployment 1 name: frontend 2 updatePolicy: updateMode: "Off" 3 $ oc get vpa --output yaml 第 第 2 章 章 使用 使用 POD 51 1 2 3 4 您希望此 您希望此 VPA CR 管理的工作 管理的工作负载对 负载对象 象类 类型。 ,如下所示: 输 输出示例 出示例 $ oc create -f .yaml $ oc get vpa --output yaml ... status: ... recommendation: containerRecommendations: - containerName: frontend 0 码力 | 404 页 | 3.60 MB | 1 年前3OpenShift Container Platform 4.10 CLI 工具
last-applied-configuration annotations by file in JSON oc apply view-last-applied -f deploy.yaml -o json # Get output from running pod mypod; use the 'oc.kubernetes.io/default-container' annotation # for selecting container to be attached or the first container in the pod will be chosen oc attach mypod # Get output from ruby-container from pod mypod oc attach mypod -c ruby-container OpenShift Container Platform sends stdout/stderr from 'bash' back to the client oc attach mypod -c ruby-container -i -t # Get output from the first pod of a replica set named nginx oc attach rs/nginx # Check to see if I can create0 码力 | 120 页 | 1.04 MB | 1 年前3OpenShift Container Platform 4.13 CLI 工具
last-applied-configuration annotations by file in JSON oc apply view-last-applied -f deploy.yaml -o json # Get output from running pod mypod; use the 'oc.kubernetes.io/default-container' annotation # for selecting container to be attached or the first container in the pod will be chosen oc attach mypod # Get output from ruby-container from pod mypod oc attach mypod -c ruby-container # Switch to raw terminal sends stdout/stderr from 'bash' back to the client oc attach mypod -c ruby-container -i -t # Get output from the first pod of a replica set named nginx oc attach rs/nginx # Check to see if I can create0 码力 | 128 页 | 1.11 MB | 1 年前3OpenShift Container Platform 4.8 CLI 工具
last-applied-configuration annotations by file in JSON oc apply view-last-applied -f deploy.yaml -o json # Get output from running pod mypod, use the oc.kubernetes.io/default-container annotation # for selecting the container to be attached or the first container in the pod will be chosen oc attach mypod # Get output from ruby-container from pod mypod oc attach mypod -c ruby-container OpenShift Container Platform sends stdout/stderr from 'bash' back to the client oc attach mypod -c ruby-container -i -t # Get output from the first pod of a ReplicaSet named nginx oc attach rs/nginx # Check to see if I can create0 码力 | 152 页 | 1.24 MB | 1 年前3OpenShift Container Platform 4.13 CI/CD
Source、Docker 或 Custom 策 略。本例使用 ruby-20-centos7 容器镜像, Source-to-image(S2I)用于应用程序构建。 成功构建容器镜像后,它将被推送到 output 部分中描述的存储库。 postCommit 部分定义一个可选构建 hook。 2.3. 创建构建输入 通过以下小节查看构建输入的概述,并了解如何使用输入提供构建操作的源内容,以及如何使用构建环境 sourceStrategy: from: kind: "ImageStreamTag" name: "ruby-20-centos7:latest" output: 6 to: kind: "ImageStreamTag" name: "origin-ruby-sample:latest" postCommit: 7 apiVersion: "build.openshift.io/v1" kind: "BuildConfig" metadata: name: "sample-build" spec: output: to: kind: "ImageStreamTag" name: "sample-image:latest" source: git:0 码力 | 129 页 | 1.37 MB | 1 年前3OpenShift Container Platform 4.4 构建(build)
sourceStrategy: from: kind: "ImageStreamTag" name: "ruby-20-centos7:latest" output: 6 to: kind: "ImageStreamTag" name: "origin-ruby-sample:latest" postCommit: 7 Source、Docker 或 Custom 策 略。示例中使用了 ruby-20-centos7 容器镜像,Source-To-Image 使用该镜像来进行应用程序构 建。 成功构建容器镜像后,它将被推送到 output 部分中描述的存储库。 postCommit 部分定义一个可选构建 hook。 第 第 2 章 章 了解 了解构 构建配置 建配置 7 第 3 章 创建构建输入 通过以下小节查看构建输 com/* data: ... apiVersion: "v1" kind: "BuildConfig" metadata: name: "sample-build" spec: output: to: kind: "ImageStreamTag" name: "sample-image:latest" source: git:0 码力 | 101 页 | 1.12 MB | 1 年前3OpenShift Container Platform 4.13 认证和授权
match the certificates you generated. See the CN and X509v3 # Subject Alternative Name in the output of: # openssl x509 -text -in /etc/pki/tls/certs/localhost.crt ServerName www.example.com DocumentRoot create-all 命令自动创建 AWS 资源。 注意 注意 默认情况下,ccoctl 在运行命令的目录中创建对象。要在其他目录中创建对象,请使用 -- output-dir 标志。此流程使用output_dir> 来引用这个目录。 有些 ccoctl 命令会发出 AWS API 调用来创建或修改 AWS 资源。您可以使用 --dry-run 标 志来避免 API 其中 serviceaccount-signer.private 和 serviceaccount-signer.public 是生成的密钥文件。 此命令还会在 / output_dir>/tls/bound-service-account-signing-key.key 中 创建集群在安装过程中所需的私钥。 2. 在 AWS 上创建 OpenID Connect 身份提供程序和 0 码力 | 201 页 | 2.74 MB | 1 年前3
共 39 条
- 1
- 2
- 3
- 4