Documentation ¶
Overview ¶
Package nodepool implements the "delete nodepool" command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Command is the cobra command for 'gsctl delete nodepool' Command = &cobra.Command{ Use: "nodepool <cluster-name/cluster-id>/<nodepool-id>", Aliases: []string{"np"}, Args: cobra.ExactArgs(1), Short: "Delete a node pool", Long: `Delete new node pool from a cluster. This command allows to delete a node pool. Deleting a node pool means that all worker nodes in the pool will be drained, cordoned and then terminated. In case you are running workloads on the node pool you want to delete, make sure that there is at least one other node pool with capacity to schedule the workloads. Also check whether label selectors, taints and tolerations will allow scheduling on other pool's worker nodes. The best way to observe this is by manually cordoning and draining the pool's worker nodes and checking workload's node assignments, before issuing the 'delete nodepool' command. Note: Data stored outside of persistent volumes will be lost and there is no way to undo this. Examples: To delete node pool 'np1id' from cluster 'f01r4', use this command: gsctl delete nodepool f01r4/np1id To prevent the confirmation questions, apply --force: gsctl delete nodepool f01r4/np1id --force You can also delete node pool 'np1id' from the cluster, by using the cluster's name: gsctl delete nodepool "Cluster name"/np1id `, PreRun: printValidation, Run: printResult, } )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.