An Enterprise Platform-as-a-Service based on Kubernetes
First Install Harmonycloud Container Platform v2.10.0. Installation packages can be downloaded at here, the kubernetes version is v1.21.1.
-
install Harmonycloud Container Platform one master and two nodes for Kubernetes cluster. Centos is recommended.
-
Packages:
-
k8s-upgrade-deploy.tar.gz
-
ansible.tar.gz
-
- Distributing installation files via ansible:
$ cd /root/
$ tar -xzvf ansible.tar.gz
$ source ansible_install.sh
- Install Harmonycloud Container Platform
$ cd /root/
$ tar -xzvf k8s-upgrade-deploy.tar.gz
$ cd /k8s-upgrade-deploy/deploy-all/
$ ./install.sh
The standard tool for running these tests is Sonobuoy. Sonobuoy is regularly built and kept up to date to execute against all currently supported versions of kubernetes.
- Download the CLI by running:
$ tar -xzvf sonobuoy_0.50.0_linux_amd64 .tar.gz
$ mv sonobuoy /usr/bin/
-
If you can't access http://www.gcr.io, you should download some pre-requisite images from other website. Then change 'imagePullPolicy' from "Always" to "IfNotPresent".
-
Deploy a Sonobuoy pod to your cluster with:
$ sonobuoy run --mode=certified-conformance
- View actively running pods:
$ sonobuoy status
- To inspect the logs:
$ sonobuoy logs
- Once
sonobuoy status
shows the run ascompleted
, 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/global/{e2e.log,junit.xml}.
- To clean up Kubernetes objects created by Sonobuoy, run:
sonobuoy delete