Skip to content

Latest commit

 

History

History
 
 

k8s-tew

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Kubernetes - The Easier Way (k8s-tew)

Prerequisites

  • Linux Host OS (preferably Ubuntu 18.04)
  • Vagrant: 2.2+
  • VirtualBox 6.0+
  • User SSH Key (~/.ssh/id_rsa & ~/.ssh/id_rsa.pub)

Start Virtual Machines

wget https://raw.githubusercontent.com/darxkies/k8s-tew/2.3.5/Vagrantfile
export IP_PREFIX=192.168.180
export MULTI_NODE=true
export CONTROLLERS=0
export WORKERS=2
vagrant up

Download k8s-tew

wget https://github.com/darxkies/k8s-tew/releases/download/2.3.5/k8s-tew
chmod u+x k8s-tew

Install Kubernetes

./k8s-tew initialize 
./k8s-tew configure --public-network=$IP_PREFIX.0/24
./k8s-tew configure --resolv-conf=/run/systemd/resolve/resolv.conf
./k8s-tew node-add -n worker00 -i $IP_PREFIX.100 -x 0 -l controller,worker,storage
./k8s-tew node-add -n worker01 -i $IP_PREFIX.101 -x 1 -l controller,worker,storage
./k8s-tew generate 
./k8s-tew deploy --skip-backup-setup --skip-logging-setup --skip-monitoring-setup --skip-showcase-setup --skip-ingress-setup

Activate Environment

eval $(./k8s-tew environment)

Start Conformance Test

wget https://github.com/vmware-tanzu/sonobuoy/releases/download/v0.17.2/sonobuoy_0.17.2_linux_amd64.tar.gz
tar xzfv sonobuoy_0.17.2_linux_amd64.tar.gz
./sonobuoy run --mode=certified-conformance

Wait for the log message "no-exit was specified, sonobuoy is now blocking"

./sonobuoy logs -f -p e2e

Download the results

outfile=$(./sonobuoy retrieve)

Generate Conformance Artefacts

mkdir conformance-results
tar xzfv $outfile -C /tmp/
cp /tmp/plugins/e2e/results/global/e2e.log conformance-results/
cp /tmp/plugins/e2e/results/global/junit_01.xml conformance-results/

Destroy Virtual Machine

vagrant destroy -f