Cookbook
This section contains information and examples for using ModusKube to accomplish common tasks.
Cluster Management
Create a cluster using default settings
By default, ModusKube will create a cluster on a public subnet as follows:
$ moduskube cluster create my-cluster
Note
By default, this cluster will be created on a public subnet with a public IP address. Access to the Kubernetes API is encrypted and requires a client certificate to authenticate, but is otherwise exposed directly to the Internet.
Create a cluster with the ModusKube API
1from moduskube.resources.cluster import Cluster
2
3cluster = Cluster('my-cluster')
4retcode, _, _ = cluster.create()