OpenShift Container Platform 4.14 Operator
operatorframework.io.bundle.metadata.v1: "metadata/" 3 operators.operatorframework.io.bundle.package.v1: "test-operator" 4 operators.operatorframework.io.bundle.channels.v1: "beta,stable" 5 operators.operatorframework 标签的 节点上。 将 将 Operator pod 放置到一个或多个特定 放置到一个或多个特定节点的 点的 Pod 关 关联性示例 性示例 将 Operator 的 pod 放置到具有 app=test 标签的 pod 的节点上的 pod 关联性。 防止 防止 Operator pod 来自一个或多个特定 来自一个或多个特定节点的 点的 Pod 反关 反关联性示例 性示例 apiVersion: matchExpressions: - key: app operator: In values: - test topologyKey: kubernetes.io/hostname #... apiVersion: operators.coreos.com/v1alpha1 kind:0 码力 | 423 页 | 4.26 MB | 1 年前3OpenShift Container Platform 4.9 节点
NAME MIN-AVAILABLE SELECTOR another-project another-pdb 4 bar=foo test-project my-pdb 2 foo=bar apiVersion: policy/v1 1 kind: PodDisruptionBudget horizontal-pod-autoscaler New size: 1; reason: All metrics below target $ oc describe hpa cm-test Name: cm-test Namespace: prom Labels:第 Fri, 16 Jun 2017 18:09:22 +0000 Reference: ReplicationController/cm-test Metrics: ( current / target ) "http_requests" on pods: 66m / 500m Min 0 码力 | 374 页 | 3.80 MB | 1 年前3OpenShift Container Platform 4.4 构建(build)
"ImageStreamTag" name: "origin-ruby-sample:latest" postCommit: 7 script: "bundle exec rake test" OpenShift Container Platform 4.4 构 构建( 建(build) ) 6 3 4 5 6 7 您可以指定导致创建新构建的触发器的列表。 source echo '#!/bin/sh' > /input_report.sh RUN echo '(test -f /secrets/secret1 && echo -n "secret1=" && cat /secrets/secret1)' >> /input_report.sh RUN echo '(test -f /config && echo -n "relative-configMap=" && secretKeyRef: key: myval name: mysecret apiVersion: v1 kind: Secret metadata: name: test-secret namespace: my-namespace type: Opaque 1 data: 2 username: dmFsdWUtMQ0K 3 password: dmFsdWUtMg0KDQo=0 码力 | 101 页 | 1.12 MB | 1 年前3OpenShift Container Platform 4.6 节点
NAME MIN-AVAILABLE SELECTOR another-project another-pdb 4 bar=foo test-project my-pdb 2 foo=bar apiVersion: policy/v1beta1 1 kind: PodDisruptionBudget 缩放。 放。 输 输出示例 出示例 $ oc describe hpa cm-test Name: cm-test Namespace: prom Labels:Annotations: Fri, 16 Jun 2017 18:09:22 +0000 Reference: ReplicationController/cm-test Metrics: ( current / target ) "http_requests" on pods: 66m / 500m Min 0 码力 | 404 页 | 3.60 MB | 1 年前3OpenShift Container Platform 4.14 镜像
Samples Operator 管理的镜像流指向位于 registry.redhat.io 上红 帽容器镜像仓库中的镜像。 注意 注意 cli、installer、must-gather 和 test 镜像流虽然属于安装有效负载的一部分,但不由 Cluster Samples Operator 管理。此流程中不涉及这些镜像流。 重要 重要 Cluster Samples Operator 必须在断开连接的环境中设置为 clean all -y FROM foo RUN yum -y install mypackage && yum clean all -y ADD myfile /test/myfile FROM foo ADD myfile /test/myfile RUN yum -y install mypackage && yum clean all -y OpenShift Container Platform 对于 Java,.m2 内容。 这些依赖项会收集到一个 tar 文件中,并传输到标准输出。 usage 借助 usage 脚本,可以告知用户如何正确使用您的镜像。这个脚本是可选的。 test/run 借助 test/run 脚本,可以创建一个进程来检查镜像是否正常工作。这个脚本是 可选的。该流程的建议工作流是: 1. 构建镜像。 2. 运行镜像以验证 usage 脚本。 3. 运行 s2i0 码力 | 118 页 | 1.13 MB | 1 年前3OpenShift Container Platform 4.2 镜像
io registry.redhat.io registry.access.redhat.com *.quay.io 注意 注意 cli、installer、must-gather 和 test 镜像流虽然属于安装有效负载的一部分,但不由 Samples Operator 管理。此流程中不涉及这些镜像流。 先决条件 先决条件 OpenShift Container Platform 4 clean all -y ADD myfile /test/myfile 这样,您每次编辑 myfile 和重新运行 podman build 或 docker build 时,系统都可重复利用 yum 命令 的缓存层,仅为 ADD 操作生成新层。 如果您将 Dockerfile 改写为: FROM foo ADD myfile /test/myfile RUN yum -y install 即使基本容器镜像已改变或命令所用工具 已更新也不受影响。 4.3.1. 了解测试要求 test 脚本的标准位置为 test/run。该脚本由 OpenShift Container Platform S2I 镜像构建程序调用,可以 是简单的 Bash 脚本,也可以是静态的 Go 二进制文件。 test/run 脚本会执行 S2I 构建,因此您的 $PATH 中必须有 S2I 二进制文件。必要情况下,请遵循0 码力 | 92 页 | 971.35 KB | 1 年前3OpenShift Container Platform 4.13 CI/CD
"ImageStreamTag" name: "origin-ruby-sample:latest" postCommit: 7 script: "bundle exec rake test" OpenShift Container Platform 4.13 CI/CD 6 1 2 3 4 二进制(本地)输入 输入 secret 外部工件 (artifact) DNS_SUBDOMAIN 值的规范。 与 data 映射中键关联的值必须采用 base64 编码。 apiVersion: v1 kind: Secret metadata: name: test-secret namespace: my-namespace type: Opaque 1 data: 2 username:3 password: secret-example-pod $ oc delete pod secret-example-pod apiVersion: v1 kind: Secret metadata: name: test-secret data: username: 1 password: 2 stringData: hostname: myapp.mydomain 0 码力 | 129 页 | 1.37 MB | 1 年前3OpenShift Container Platform 4.7 镜像
redhat.io 有很 多冗余,因为它已经定向到 registry.redhat.io,只用于 Jenkins 镜像和镜像流。 注意 注意 cli、installer、must-gather 和 test 镜像流虽然属于安装有效负载的一部分,但不由 Cluster Samples Operator 管理。此流程中不涉及这些镜像流。 先决条件 使用具有 cluster-admin 角色的用户访问集群。 clean all -y FROM foo RUN yum -y install mypackage && yum clean all -y ADD myfile /test/myfile FROM foo ADD myfile /test/myfile RUN yum -y install mypackage && yum clean all -y 第 第 4 章 章 创 创建 建镜 镜像 像 usage 借助 usage 脚本,可以告知用户如何正确使用您的镜像。这个脚本是可选的。 OpenShift Container Platform 4.7 镜 镜像 像 32 test/run 借助 test/run 脚本,可以创建一个进程来检查镜像是否正常工作。这个脚本是 可选的。该流程的建议工作流是: 1. 构建镜像。 2. 运行镜像以验证 usage 脚本。 3. 运行 s2i0 码力 | 123 页 | 1.20 MB | 1 年前3OpenShift Container Platform 4.10 可伸缩性和性能
[Service] Type=oneshot RemainAfterExit=yes ExecCondition=/usr/bin/test ! -d /var/lib/etcd/member ExecStart=/usr/sbin/setenforce 0 ExecStart=/bin/rsync openshift-numaresources spec: replicas: 1 selector: matchLabels: app: test template: metadata: labels: app: test spec: schedulerName: topo-aware-scheduler 1 containers: 部署暂停 Pod 以在 2000 个节点规模下对 OpenShift Container Platform 的 control plane 组件进 行压力测试。 2. 这里的 pod 数量是 test pod 的数量。实际的 pod 数量取决于应用程序的内存、CPU 和存储要 求。 3. 这在一个有 100 个 work 节点,每个 worker 节点有 500 个 pod 的集群中测试。默认0 码力 | 315 页 | 3.19 MB | 1 年前3OpenShift Container Platform 3.11 扩展和性能指南
Cluster Loader 包含在 atomic-openshift-tests 软件包中。要安装它,请运行: 安装后,测试可执行文件 extended.test 位于 /usr/libexec/atomic-openshift/extended.test 中。 12.3. 运行 CLUSTER LOADER 1. 将 KUBECONFIG 变量设置为管理员 kubeconfig 的位置: 2. 使用内置的测试配置执行 Loader,它会部署五个模板构建并等待它们完成: 或者,通过为 --viper-config 添加标记来执行带有用户定义的配置的 Cluster Loader: 在本例中,有一个名为 config/ 的子目录,其配置文件名为 test.yml。在命令行中,排除配 置文件的扩展,因为工具会自动决定文件类型和扩展。 12.4. 配置 CLUSTER LOADER 创建多个命名空间(项目),其中包含多个模板或 pod。 在 config/ /usr/libexec/atomic-openshift/ $ ./extended.test --ginkgo.focus="Load cluster" $ ./extended.test --ginkgo.focus="Load cluster" --viper-config=config/test 1 OpenShift Container Platform 3.11 扩 扩展和性能指南0 码力 | 58 页 | 732.06 KB | 1 年前3
共 41 条
- 1
- 2
- 3
- 4
- 5