我如何在 k6s 中允许不安全的请求?

How do I allow insecure requests in k6s?

使用不安全证书运行的应用程序会导致 k6 出错。

time="2017-11-29T14:15:16Z" level=warning msg="Request Failed" error="Put https://xxxxxxx: x509: certificate signed by unknown authority"

您需要在选项中添加insecureSkipTLSVerify: true或添加--insecure-skip-tls-verify标志。

https://docs.k6.io/docs/options