Back to Vcluster

README

conformance/v1.28/README.md

0.35.0-next.11.7 KB
Original Source

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.28.0 --nodes=2

2. Create the vcluster

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

yaml
syncer:
  extraArgs:
  - --disable-fake-kubelets
api:
  image: registry.k8s.io/kube-apiserver:v1.28.0
  extraArgs:
  - --service-account-jwks-uri=https://kubernetes.default.svc.cluster.local/openid/v1/jwks
controller:
  image: registry.k8s.io/kube-controller-manager:v1.28.0
etcd:
  image: registry.k8s.io/etcd:3.5.9-0
scheduler:
  image: registry.k8s.io/kube-scheduler:v1.28.0
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.15.7 or newer):

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

3. Run Tests

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

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