addK6
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addK6( name: string, enableBrowserExtensions?: boolean, port?: number): K6Resource;}Signature
method
addK6 builderAdds a Grafana k6 container resource to the application model. The default image is and the tag is .
addK6( name: string, enableBrowserExtensions?: boolean, port?: number): K6ResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.enableBrowserExtensions booleanoptional= FalseEnables browser automation and end-to-end web testing to k6.portnumberoptionalThe host port to bind the underlying container to.Returns
K6Resource Applies to
This method applies to the following types: