3.3. 创建 Hyperfoil Controller
在 Red Hat OpenShift 上实例化 Hyperfoil Controller,以便您可以使用 Hyperfoil 命令行界面(CLI)上传和运行基准测试。
先决条件
- 创建 Hyperfoil Operator 订阅。
流程
定义
hyperfoil-controller.yaml
。$ cat > hyperfoil-controller.yaml<<EOF apiVersion: hyperfoil.io/v1alpha2 kind: Hyperfoil metadata: name: hyperfoil spec: version: latest EOF
应用 Hyperfoil Controller。
$ oc apply -f hyperfoil-controller.yaml
检索连接到 Hyperfoil CLI 的路由。
$ oc get routes NAME HOST/PORT hyperfoil hyperfoil-benchmark.apps.example.net