k8s-conformance/v1.26/vcluster
Oleg Matskiv b1069c0fc9 Add conformance results for v1.26/vcluster (#2435)
Signed-off-by: Oleg Matskiv <oleg.matskiv@gmail.com>
2023-02-03 09:43:50 -08:00
..
PRODUCT.yaml Add conformance results for v1.26/vcluster (#2435) 2023-02-03 09:43:50 -08:00
README.md Add conformance results for v1.26/vcluster (#2435) 2023-02-03 09:43:50 -08:00
e2e.log Add conformance results for v1.26/vcluster (#2435) 2023-02-03 09:43:50 -08:00
junit_01.xml Add conformance results for v1.26/vcluster (#2435) 2023-02-03 09:43:50 -08:00

README.md

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 kvm2 driver.

1. Create a multinode minikube cluster

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

2. Create the vcluster

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

syncer:
  extraArgs:
  - --disable-fake-kubelets
vcluster:
  image: rancher/k3s:v1.26.0-k3s1
sync:
  pods:
    ephemeralContainers: true
  nodes:
    enabled: true
    syncAllNodes: true
    enableScheduler: true
  priorityclasses:
    enabled: true
  ingresses:
    enabled: false
  csistoragecapacities:
    enabled: false
  csidrivers:
    enabled: false

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

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

3. Run Tests

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

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