kubectl to grant access to the new cluster.
Prerequisites
In order to usenscloud-cluster-action, you need to have access to Namespace.
The easiest way to ensure access is to run namespacelabs/nscloud-setup beforehand.
Example
Options
preview
If set totrue, the cluster created will not be destroyed at the end.
The default is false.
wait-kube-system
If set totrue, wait for coredns and local-path-provisioner to be ready.
The default is true.
platform
Select the platform to run on. Valid options:linux/amd64, linux/arm64 and macos/arm64. The default is linux/amd64
machine-shape:
Specify the machine shape as<cpu>x<mem>. E.g. 2x8 starts a 2 vCPU 8GB RAM instance.
duration
If set, specifies how long the cluster should live for. E.g.10m.
unique-tag
If set, assign a unique tag to the instance. If there is already an instance with this tag, reuse it.ingress
Configures the ingress of this instance. Valid options:wildcard.
kubernetes-version
Which Kubernetes cluster version to deploy in the instance. E.g.1.31.