This will install and run sonobuoy against a kubernetes v1.7 cluster as created by kraken.
./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.
vim <complete\path\to\config>\sonobuoy.yaml +434
set name:
to be sonobuoy
./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.
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
./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
./kraken tool kubectl --config <complete\path\to\config>\sonobuoy.yaml --output <complete\path\to\output\directory> -- exec -n sonobuoy sonobuoy ls /tmp/sonobuoy
./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>
./kraken cluster down --config \<complete\path\to\config>\sonobuoy.yaml --output <complete\path\to\target\directory>