-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conformance results for v1.31/kubeasz (#3477)
Signed-off-by: gjmzj <[email protected]>
- Loading branch information
Showing
4 changed files
with
67,715 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
vendor: kubeasz | ||
name: kubeasz | ||
version: 3.6.5 | ||
website_url: https://github.com/easzlab/kubeasz | ||
repo_url: https://github.com/easzlab/kubeasz | ||
documentation_url: https://github.com/easzlab/kubeasz/tree/master/docs | ||
product_logo_url: https://gitee.com/easzlab/kubeasz/raw/master/pics/kubeasz.svg | ||
type: installer | ||
description: 'Deploy a Production Ready Kubernetes Cluster with ansible playbooks' | ||
contact_email_address: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# Conformance tests for kubeasz kubernetes cluster | ||
|
||
## Node Provisioning | ||
|
||
Provision 3 nodes for your cluster (OS: Ubuntu 22.04) | ||
|
||
1 master node (4c16g) | ||
|
||
2 worker node (4c16g) | ||
|
||
for a High-Availability Kubernetes Cluster, read [more](https://github.com/easzlab/kubeasz/blob/master/docs/setup/00-planning_and_overall_intro.md) | ||
|
||
## Install the cluster | ||
|
||
(1) Download 'kubeasz' code, the binaries and offline images | ||
|
||
``` | ||
export release=3.6.5 | ||
curl -C- -fLO --retry 3 https://github.com/easzlab/kubeasz/releases/download/${release}/ezdown | ||
chmod +x ./ezdown | ||
./ezdown -D -m standard | ||
``` | ||
|
||
(2) install an all-in-one cluster | ||
|
||
``` | ||
./ezdown -S | ||
source ~/.bashrc | ||
dk ezctl start-aio | ||
``` | ||
|
||
(3) Add two worker nodes | ||
|
||
``` bash | ||
ssh-copy-id ${worker1_ip} | ||
dk ezctl add-node default ${worker1_ip} | ||
|
||
ssh-copy-id ${worker2_ip} | ||
dk ezctl add-node default ${worker2_ip} | ||
``` | ||
|
||
## Run Conformance Test | ||
|
||
The standard tool for running these tests is [Sonobuoy](https://github.com/heptio/sonobuoy). | ||
|
||
Download a [binary release](https://github.com/heptio/sonobuoy/releases) of the CLI | ||
|
||
Deploy a Sonobuoy pod to your cluster with: | ||
|
||
``` | ||
$ sonobuoy run --plugin-env=e2e.E2E_EXTRA_ARGS="--ginkgo.v" --mode=certified-conformance | ||
``` | ||
|
||
**NOTE:** You can run the command synchronously by adding the flag `--wait` but be aware that running the Conformance tests can take an hour or more. | ||
|
||
View actively running pods: | ||
|
||
``` | ||
$ sonobuoy status | ||
``` | ||
|
||
To inspect the logs: | ||
|
||
``` | ||
$ sonobuoy logs | ||
``` | ||
|
||
Once `sonobuoy status` shows the run as `completed`, copy the output directory from the main Sonobuoy pod to a local directory: | ||
|
||
``` | ||
$ outfile=$(sonobuoy retrieve) | ||
``` | ||
|
||
This copies a single `.tar.gz` snapshot from the Sonobuoy pod into your local | ||
`.` directory. Extract the contents into `./results` with: | ||
|
||
``` | ||
mkdir ./results; tar xzf $outfile -C ./results | ||
``` | ||
|
||
**NOTE:** The two files required for submission are located in the tarball under **plugins/e2e/results/{e2e.log,junit.xml}**. | ||
|
||
To clean up Kubernetes objects created by Sonobuoy, run: | ||
|
||
``` | ||
sonobuoy delete | ||
``` |
Oops, something went wrong.