Skip to content

Latest commit

 

History

History
 
 

kraken

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

To Reproduce:

This will install and run sonobuoy against a kubernetes v1.7 cluster as created by kraken.

Download and unpack the appropriate cli tarball for your host OS (kraken v1.2.1):

Generate a kraken configuration file for aws

./kraken generate <complete\path\to\config>\sonobuoy.yaml --provider aws

<complete\path\to\config> can be any directory your user has read/write permissions on but it should be the full path.

Set name of cluster

vim <complete\path\to\config>\sonobuoy.yaml +434

set name: to be sonobuoy

Create cluster

./kraken cluster up --config <complete\path\to\config>\sonobuoy.yaml --output <complete\path\to\output\directory>

<complete\path\to\output\directory> can be any directory your user has read/write permissions on but it should be the full path.

This will take 5-20 minutes, depending on how AWS is responding.

*note the above command assumes you have rsa keys at ~/.ssh and that you have configured aws credentials at ~/.aws. If you have not done either of those, please do so and re-run the cluster up command.

Install sonobuoy

  1. wget https://raw.githubusercontent.com/cncf/k8s-conformance/master/sonobuoy-conformance-1.7.yaml -O <complete\path\to\output\directory>\sonobuoy-conformance-1.7.yaml
  2. ./kraken tool kubectl --config <complete\path\to\config>\sonobuoy.yaml --output <complete\path\to\output\directory> -- apply -f <complete\path\to\output\directory>\sonobuoy-conformance-1.7.yaml

Fetch the results

  1. ./kraken tool kubectl --config <complete\path\to\config>\sonobuoy.yaml --output <complete\path\to\output\directory> -- exec -n sonobuoy sonobuoy ls /tmp/sonobuoy
  2. ./kraken tool kubectl --config <complete\path\to\config>\sonobuoy.yaml --output <complete\path\to\output\directory> -- cp -n sonobuoy sonobuoy:/tmp/sonobuoy/<filename of results> <complete\path\to\output\directory>\<filename of results>

Destroy cluster

./kraken cluster down --config \<complete\path\to\config>\sonobuoy.yaml --output <complete\path\to\target\directory>