1.3. 扩展 Camel K 集成
您可以使用 oc scale
命令扩展集成。
流程
要扩展 Camel K 集成,请运行以下命令:
oc scale it <integration_name> --replicas <number_of_replicas>
oc scale it <integration_name> --replicas <number_of_replicas>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 您还可以直接编辑 Integration 资源来扩展集成。
oc patch it <integration_name> --type merge -p '{"spec":{"replicas":<number_of_replicas>}}'
oc patch it <integration_name> --type merge -p '{"spec":{"replicas":<number_of_replicas>}}'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 要查看集成的副本数,请使用以下命令。
oc get it <integration_name> -o jsonpath='{.status.replicas}'
oc get it <integration_name> -o jsonpath='{.status.replicas}'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow