|
| 1 | +# Conformance Test Procedure for Clush Kube |
| 2 | +All of the tasks below will be done only on Bastion Server |
| 3 | + |
| 4 | + |
| 5 | +## Installing Required Packages and Dependencies |
| 6 | +- **Generate and Copy SSH Keys** |
| 7 | +``` |
| 8 | +ssh-keygen -t rsa |
| 9 | +
|
| 10 | +ssh-copy-id root@<master01> |
| 11 | +ssh-copy-id root@<worker01> |
| 12 | +ssh-copy-id root@<worker02> |
| 13 | +``` |
| 14 | + |
| 15 | +- **Install Python3 and Ansible** |
| 16 | +``` |
| 17 | +apt update |
| 18 | +apt install python3 iputils-ping ansible sshpass git |
| 19 | +``` |
| 20 | + |
| 21 | +- **Extract the Package File** |
| 22 | +``` |
| 23 | +tar -xvzf clushkube_package.tar.gz |
| 24 | +``` |
| 25 | + |
| 26 | + |
| 27 | +## Configuring and Running Clush Kube |
| 28 | +- **Cluster Configuration** |
| 29 | +``` |
| 30 | +vi static_files/yml-ha/config.yml |
| 31 | +
|
| 32 | +# GLOBAL |
| 33 | +kubernetes_version: <k8s-version> |
| 34 | +contianerd_version: <containerd-version> |
| 35 | +... |
| 36 | +# HA |
| 37 | +ethernet_name: <nic-name> |
| 38 | +virtual_ip: <haproxy-vip> |
| 39 | +virtual_ep: <haproxy-vip>:<haproxy-port> |
| 40 | +``` |
| 41 | + |
| 42 | +- **Run the Clush Kube Binary** |
| 43 | +``` |
| 44 | +./clushkube-api -port 880 |
| 45 | +``` |
| 46 | + |
| 47 | +- **Install a Cluster** |
| 48 | +``` |
| 49 | +curl --location --request POST 'localhost:880/bizkube/api/v1/man/cluster/manage/control' \ |
| 50 | +--header 'Meta: {"uuid":"TEST:SESSION","client":0}' \ |
| 51 | +--header 'Content-Type: application/json' \ |
| 52 | +--data-raw '{ |
| 53 | + "cluster": "cluster001", |
| 54 | + "type": "create", |
| 55 | + "version": "<k8s-version>", |
| 56 | + "mode": "debug", |
| 57 | + "host": { |
| 58 | + "control": { |
| 59 | + "name":"master01", |
| 60 | + "ip":"<master01-ip>" |
| 61 | + }, |
| 62 | + "workers": [ |
| 63 | + { |
| 64 | + "name":"worker01", |
| 65 | + "ip":"<worker01-ip>" |
| 66 | + }, |
| 67 | + { |
| 68 | + "name":"worker02", |
| 69 | + "ip":"<worker02-ip>" |
| 70 | + } |
| 71 | + ] |
| 72 | + } |
| 73 | +}' |
| 74 | +``` |
| 75 | + |
| 76 | + |
| 77 | +## Running the Conformance Tests |
| 78 | +**Download the Sonobuoy Binary Release** |
| 79 | +``` |
| 80 | +URL: "https://github.com/vmware-tanzu/sonobuoy/releases" |
| 81 | +``` |
| 82 | + |
| 83 | +**Extract the Downloaded Files** |
| 84 | +``` |
| 85 | +tar -xvf <sonobouy.version>.tar.gz |
| 86 | +``` |
| 87 | + |
| 88 | +**Start the Sonobuoy Test** |
| 89 | +``` |
| 90 | +./sonobuoy run --mode=certified-conformance --wait |
| 91 | +``` |
| 92 | + |
| 93 | +**Check the Progress of Sonobuoy (It Should End with 'fail: 0')** |
| 94 | +``` |
| 95 | +./sonobouy status |
| 96 | +``` |
| 97 | + |
| 98 | +**Save the Test Results to a File** |
| 99 | +``` |
| 100 | +outfile=$(./sonobuoy retrieve) |
| 101 | +mkdir ./results; tar xzf $outfile -C ./results |
| 102 | +``` |
| 103 | + |
| 104 | +**Verify the Two Required Files in the Path Below** |
| 105 | +``` |
| 106 | +cat ./results/plugins/e2e/results/global/e2e.log |
| 107 | +cat ./results/plugins/e2e/results/global/junit_01.xml |
| 108 | +``` |
0 commit comments