- Create an account at https://joyent.com/
- Install
triton-kubernetes
- Create a new cluster manager and cluster using
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
Download sample cluster manager yaml configuration here. Alternatively follow the cli prompts.
triton-kubernetes create manager
Download sample cluster yaml configuration here. Alternatively follow the cli prompts.
triton-kubernetes create cluster
When the cluster is up and running,
- Download the kubeconfig file.
- Set the
KUBECONFIG
environment variableexport KUBECONFIG=$(pwd)/kubeconfig
.
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.