sonobuoy的使用

本文档介绍了如何在Kubernetes 1.19版本中进行工具安装,准备镜像,执行Conformance测试案例,包括常用命令的使用。通过sonobuoy工具,你可以检查集群的合规性,并针对特定案例进行测试。测试结果可以用于验证集群的功能性和稳定性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、k8s1.19版本工具安装

2、准备跑case使用的镜像,sonobuoy images可查看镜像列表,事先把镜像准备好放到k8s每个节点上

3、执行case

sonobuoy run --mode=certified-conformance --image-pull-policy IfNotPresent

执行时指定跑case使用的镜像

sonobuoy run --mode=certified-conformance --image-pull-policy IfNotPresent --kube-conformance-image *****/library/conformance:v1.19.9

4、常用命令:

sonobuoy status 查看当前跑的状态

sonobuoy retrieve 获取跑的结果

sonobuoy e2e 202206060347_sonobuoy_97313881-0561-4d72-ade1-a7a831c8e38e.tar.gz  查看跑失败的case

5、单独跑某个case

sonobuoy run  --e2e-focus="Container Runtime blackbox test when starting a container that exits should run with the expected status" --image-pull-policy IfNotPresent --kube-conformance-image ***/library/conformance:v1.19.9

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值