Skip to content

Latest commit

 

History

History
 
 

rke

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Conformance tests for RKE Kubernetes cluster

Node Provisioning

Provision 3 nodes for your cluster. Follow the OS requirements.

Setup Your cluster.yml File

A minimal 3-node cluster.yml file should look like this:

kubernetes_version: v1.11.8-rancher1-1
nodes:
  - address: xx.xx.xx.1
    hostname_override: node-1
    user: root
    role: [controlplane,worker,etcd]
  - address: xx.xx.xx.2
    hostname_override: node-2
    user: root
    role: [worker]
  - address: xx.xx.xx.3
    hostname_override: node-3
    user: root
    role: [worker]

Run RKE

  1. Follow the installation to install the latest RKE release.

  2. In the same directory as your cluster.yml file, run:

$ rke up
  1. Wait until the cluster deployment completes successfully.

Run Conformance Test

  1. Download a sonobuoy binary release of the CLI, or build it yourself by running:
$ go get -u -v github.com/heptio/sonobuoy
  1. Configure your kubeconfig file by running the following command in the same directory as your cluster.yml file:
$ export KUBECONFIG="kube_config_cluster.yml"
  1. Run sonobuoy:
$ sonobuoy run
  1. Watch the logs:
$ sonobuoy logs
  1. Check the status:
$ sonobuoy status
  1. Once the status commands shows the run as completed, you can download the results tar.gz file:
$ sonobuoy retrieve