Create a new Kubernetes Cluster.
New-CivoKubernetesCluster [-Name] <String> [[-NodeCount] <String>] [[-NodesSize] <String>]
[[-KubernetesVersion] <String>] [[-Tags] <String>] [[-Applications] <String>] [<CommonParameters>]
Create a new k3s Kubernetes cluster.
You can either just define the name of the cluster or define it just as you want. See the available parameters for what you can do.
New-CivoKubernetesCluster MyNewCluster
New-CivoKubernetesCluster -Name "Cluster01" -NodeCount 1
$cluster = @{
Name = "ClustersLastStand"
NodeCount = 2
NodesSize = "g2.large"
Tags = "prod powershell"
Applications = "prometheus-operator, MinIO"
}
New-CivoKubernetesCluster @cluster
Set the name of your cluster. This parameter is mandatory and must be set to continue.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Set the number of nodes you want to run. The default is 3.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Set the instance size of your nodes. The current default is g2.small.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Set the version of Kubernetes you want to run. This defaults to the latest available.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
You can define one or more tags for your cluster. The list should be space separated.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A comma separated list of applications you want install at deployment. If you want to remove a default application, you can prefix the name with a -.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://roberthstrand.github.io/civoShell/New-CivoKubernetesCluster.md