< Back

Remove-GkeNodePool

Mon Jan 13, 2020 11:46 pm

NAME Remove-GkeNodePool



SYNOPSIS

Removes a Google Container NodePool from a Cluster.





SYNTAX

Remove-GkeNodePool [-Project <string>] [-Zone <string>] [-NodePoolName] <string> [-ClusterName] <string>

[<CommonParameters>]



Remove-GkeNodePool [-NodePoolName] <string> [-ClusterObject] <Cluster> [<CommonParameters>]



Remove-GkeNodePool -NodePoolObject <NodePool> [<CommonParameters>]





DESCRIPTION

Removes a Google Container NodePool from a Cluster. If -Project and -Zone are not specified, the cmdlets will

default to the default project and zone. If -ClusterObject is used instead of -ClusterName, the Project and Zone

will come from the cluster object. If a node pool object is given to -ClusterName, the cmdlet will get Project,

Zone and Cluster information from the object.





PARAMETERS

-Project <string>

The project that the node pool's cluster belongs to. This parameter defaults to the project in the Cloud SDK

config.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Zone <string>

The zone that the node pool's cluster belongs to. This parameter defaults to the project in the Cloud SDK

config.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NodePoolName <string>

The name of the node pool to be removed.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NodePoolObject <NodePool>

The NodePool object to be removed. Cluster, Zone and Project will be inferred from the object.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ClusterName <string>

The name of the container cluster that the node pool is in.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ClusterObject <Cluster>

The container cluster object that the node pool is in.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



---------- EXAMPLE 1 ----------



PS C:\\> Remove-GkeCluster -ClusterName "my-cluster" `

-Zone "us-west1-b" `

-NodePoolName "my-nodepool"



Removes the node pool "my-nodepool" in cluster "my-cluster" in the zone "us-west1-b" of the default project.



RELATED LINKS

[Node Pools] (https://cloud.google.com/container-engi ... node-pools)

[Container Clusters] (https://cloud.google.com/container-engi ... /clusters/)