Skip to content

Latest commit

 

History

History
 
 

triton-kubernetes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

To reproduce

Set up the cluster

  1. Create an account at https://joyent.com/
  2. Install triton-kubernetes
  3. Create a new cluster manager and cluster using triton-kubernetes.

Install triton-kubernetes

  • Download and Install Go
  • Clone this repository into $GOPATH/src/github.com/joyent/triton-kubernetes
  • cd $GOPATH/src/github.com/joyent/triton-kubernetes
  • go install

Create a new cluster manager

Download sample cluster manager yaml configuration here. Alternatively follow the cli prompts.

  • triton-kubernetes create manager

Create a new cluster

Download sample cluster yaml configuration here. Alternatively follow the cli prompts.

  • triton-kubernetes create cluster

When the cluster is up and running,

  1. Download the kubeconfig file.
  2. Set the KUBECONFIG environment variable export KUBECONFIG=$(pwd)/kubeconfig.

Run Conformance Test

Follow the instructions as found in the CNCF K8s Conformance repository.

  • Note that the Sonobouy e2e test suite currently requires the master nodes to be schedulable, by default triton-kubernetes taints the master nodes to be unschedulable.

The following modifications are needed to the master nodes in order to run the tests:

# ETC_NODE_NAME=tri-k8s-etcd-1
# CORE_NODE_NAME=tri-k8s-core-1
kubectl taint nodes $ETC_NODE_NAME "node-role.kubernetes.io/etcd":NoExecute-
kubectl taint nodes $CORE_NODE_NAME "node-role.kubernetes.io/controlplane":NoSchedule-

The procedure described here also works for any Triton setup, not only the main one run by Joyent. Even for development setups. The only condition is to have the Triton environment variables TRITON_URL, TRITON_ACCOUNT and TRITON_KEY_ID properly configured. Examples of how to configure and use these variables can be found either on node-triton or triton-go documentation.