-
Extract files from the archive:
tar zxvf BOC_3.6_RELEASE_k8s_noarch.tar.gz -C /opt
-
Prepare configuration (modify it if necessary):
cd /opt/BOC_3.6_RELEASE_k8s_noarch cp -f install_portal_HA.yaml ./config.yaml
-
Install BeyondContainer platform:
./bocctl run -a install -c config.yaml
There are two ways to manage clusters
-
You can bootstrap clusters with kubeadm first.
-
Use the script
create-token.sh
to generate a token:$ cd /opt/BOC_3.6_RELEASE_k8s_noarch/help $ cat create_token.sh kubectl create sa management-admin -n kube-system &> /dev/null; \ kubectl create clusterrolebinding management-admin --clusterrole=cluster-admin --serviceaccount=kube-system:management-admin &> /dev/null; \ key=$(kubectl get sa management-admin -o=custom-columns=:.secrets[0].name -n kube-system | grep 'management');\ token=$(kubectl -n kube-system get secret ${key} -o yaml | grep token: | awk '{print $2}' | base64 -d 2> /dev/null);\ echo $token # generate token $ ./create_token.sh
-
Login BeyondContainer Platform and click
add cluster
,then input the token
- Login BeyondContainer Platform,and click
create cluster
- Set up cluster,such as
master/node ip
,access info
,cni type
etc. - You successfully create a cluster
Before test,you need to login the cluster node terminal.
The standard tool for running these tests is sonobuoy. Sonobuoy is regularly built and kept up to date to test all currently supported versions of kubernetes, and can be obtained here.
Download the CLI by running:
VERSION=0.57.1 OS=linux ARCH=amd64 \
&& wget "https://github.com/vmware-tanzu/sonobuoy/releases/download/v${VERSION}/sonobuoy_${VERSION}_${OS}_${ARCH}.tar.gz" \
&& tar -xzf sonobuoy_${VERSION}_${OS}_${ARCH}.tar.gz -C /usr/bin \
&& chmod +x /usr/bin \
&& rm sonobuoy_${VERSION}_${OS}_${ARCH}.tar.gz
Deploy a sonobuoy pod to your cluster:
sonobuoy run --mode=certified-conformance
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:
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 *.tar.gz -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