Cluster

kubernetes cluster is made up of components such as control plane(master), config store i.e etcd and worker nodes.

spawner allows user to create a kubernetes cluster in the following cloud providers

  1. AWS

  2. Azure

Creating cluster

spawner create-cluster clustername -r request.json

request.json is a cluster specification file with the following fields

API fields ( *required)

fielddescriptionDefault

provider*

Backend cloud provider for infra. such aws, azure,

region*

hosted region for infra, this might change as per provider.

accountName

when using with netbook connect, you can specify the connect user whose behalf the request is made to provider. In local run this will be ignored and config provided credentials wil be used

clusterName*

Name of the cluster to be created

nodeSpec

optional node specification. azure requires you to provide default system pool. Required for azure, ignored in case of aws cluster creation. Refer nodes

labels

set of pair of key values. The cluster will be tagged with this ex: { created_at: sometime, by: bob}

Cluster creation takes time depending on the provider, spawner behaves differently depending on the provider

  • AWS: submit request to aws and return immediately.

  • azure: wait until cluster created and returns. TCluster and other resources (node) creation faster than other providers

Last updated