Skip to content

Latest commit

 

History

History
 
 

vcluster

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Run Conformance Tests

You will need a cluster with at least 2 nodes.
The steps below assume that you will use a local minikube cluster.
We executed the test on a minikube instance with docker driver (default auto-detected by system).

1. Create a multinode minikube cluster

minikube start --kubernetes-version 1.29.0 --nodes=2

2. Create the vcluster

Create a file called values.yaml with the following content:

syncer:
  extraArgs:
  - --disable-fake-kubelets
api:
  image: registry.k8s.io/kube-apiserver:v1.29.0
  extraArgs:
  - --service-account-jwks-uri=https://kubernetes.default.svc.cluster.local/openid/v1/jwks
controller:
  image: registry.k8s.io/kube-controller-manager:v1.29.0
etcd:
  image: registry.k8s.io/etcd:3.5.10-0
scheduler:
  image: registry.k8s.io/kube-scheduler:v1.29.0
sync:
  pods:
    ephemeralContainers: true
  nodes:
    enabled: true
    syncAllNodes: true
    enableScheduler: true
  priorityclasses:
    enabled: true
  ingresses:
    enabled: false
  csistoragecapacities:
    enabled: false
  csidrivers:
    enabled: false
  persistentvolumes:
    enabled: true
  storageclasses:
    enabled: true

Now create the vcluster with the vcluster cli (version v0.19.0 or newer):

# Create the vcluster
vcluster create vcluster -n vcluster -f values.yaml --distro k8s

3. Run Tests

Install sonobuoy(version v0.57.1 or newer) and run:

export SONOBUOY_IMAGE_VERSION=v0.57.1
export SONOBUOY_LOGS_IMAGE_VERSION=v0.4
sonobuoy run \
  --mode=certified-conformance \
  --kubernetes-version=v1.29.0 \
  --sonobuoy-image=sonobuoy/sonobuoy:$SONOBUOY_IMAGE_VERSION \
  --systemd-logs-image=sonobuoy/systemd-logs:$SONOBUOY_LOGS_IMAGE_VERSION \
  --wait