Skip to content

rodrigodelmonte/kubetest2-dkp-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubetest2-dkp-aws

kubetest2-dkp-aws is a proof of concept to execute Kubernetes Conformance tests on AWS clusters deployed using DKP. It implements a kubetest2-DEPLOYER to manage the lifecycle of a Kubernetes cluster for tests.

Requirements

  • dkp CLI
  • Configured AWS credentials

Install

go install sigs.k8s.io/kubetest2/...@latest
go install sigs.k8s.io/kubetest2/kubetest2-tester-ginkgo@latest
go install github.com/rodrigodelmonte/kubetest2-dkp-aws@latest

Running Kubernetes Conformance Tests

CLUSTER_NAME=kubetest2-rhel-88
AMI_ID=ami-05729346d7b1ecXXX # Built with https://github.com/mesosphere/konvoy-image-builder/
KUBERNETES_VERSION=1.27.5
kubetest2 dkp-aws \
    --up \
    --down \
    --cluster-name=${CLUSTER_NAME} \
    --ami=${AMI_ID} \
    --kubernetes-version=${KUBERNETES_VERSION} \
    --test=ginkgo \
    --  \
    --parallel 8 \
    --flake-attempts 2 \
    --test-package-version v${KUBERNETES_VERSION} \
    --focus-regex='\[Conformance\]' | tee e2e.log

References