nodepool

package
v0.0.0-...-2caf503 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

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

type Arguments

type Arguments struct {
	APIEndpoint       string
	AuthToken         string
	ClusterNameOrID   string
	Force             bool
	NodePoolID        string
	UserProvidedToken string
	Verbose           bool
}

Arguments defines the arguments this command can take into consideration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL