百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

aws-k8s-tester

> 编程语言
开源

用于在 AWS 上测试 Kubernetes 的工具

182 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于在 AWS 上测试 Kubernetes 的工具

Tools for testing Kubernetes on AWS

Installation

This project will use rolling releases going forward; we recommend fetching the latest commit:

go install github.com/aws/aws-k8s-tester/...@HEAD

You'll need the standard kubetest tools as well:

go install sigs.k8s.io/kubetest2/...@latest

kubetest2 deployers and testers for EKS

Usage

Auto-detect cluster version

The deployers will search for a file called kubernetes-version.txt on your PATH. This file should contain a valid tag for a Kubernetes release. The --kubernetes-version flag can be omitted if this file exists.


eksctl deployer

This deployer is a thin wrapper around eksctl.

The simplest usage is:

bash
kubetest2 \
  eksctl \
  --kubernetes-version=X.XX \
  --up \
  --down \
  --test=exec \
  -- echo "Hello world"

Additional flags

  • --instance-types - comma-separated list of instance types to use for nodes
  • --ami - AMI ID for nodes
  • --nodes - number of nodes
  • --region - AWS region
  • --config-file - Path to eksctl config file (if provided, other flags are ignored)
  • --availability-zones - Node availability zones
  • --ami-family - AMI family to use: AmazonLinux2023 | Bottlerocket
  • --efa-enabled - Enable Elastic Fabric Adapter for the nodegroup
  • --volume-size - Size of the node root volume in GB
  • --private-networking - Use private networking for nodes
  • --with-oidc - Enable OIDC provider for IAM roles for service accounts
  • --deploy-target - The target to deploy: cluster | nodegroup (defaults to cluster)
  • --cluster-name - Name of the EKS cluster (defaults to RunID if not specified)
  • --unmanaged-nodegroup - Use unmanaged nodegroup instead of managed nodegroup
  • --nodegroup-name - Name of the nodegroup (defaults to ng-1)

eksapi deployer

This deployer calls the EKS API directly, instead of using CloudFormation for EKS resources.

The simplest usage is:

bash
kubetest2 \
  eksapi \
  --kubernetes-version=X.XX \
  --up \
  --down \
  --test=exec \
  -- echo "Hello world"

Additional flags

  • --instance-types - comma-separated list of instance types to use for nodes
  • --ami - AMI ID for nodes
  • --nodes - number of nodes
  • --region - AWS region
  • --endpoint-url - Override the EKS endpoint URL
  • --cluster-role-service-principal - Additional service principal that can assume the cluster IAM role.

multi tester

This tester wraps multiple executions of other testers.

Tester argument groups are separated by --, with the first group being passed to the multi tester itself.

The first positional argument of each subsequent group should be the name of a tester.

bash
kubetest2 \
  noop \
  --test=multi \
  -- \
  --fail-fast=true \
  -- \
  ginkgo \
  --focus-regex='\[Conformance\]' \
  --parallel=4 \
  -- \
  exec \
  go test ./my/test/package

gotest-junit tester

This tester executes a Go test binary and generates JUnit XML output.

It wraps the test execution, captures the output, and uses go-junit-report to generate a JUnit XML file in the artifacts directory.

bash
kubetest2 \
  eksapi \
  --kubernetes-version=X.XX \
  --up \
  --down \
  --test=gotest-junit \
  -- ./my/gotest/binary.test

The JUnit XML file is written to $ARTIFACTS/junit_.xml (e.g., _artifacts/junit_testcase.xml).

The artifacts directory defaults to ./_artifacts or can be set via the ARTIFACTS environment variable.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言