Skip to main content
S3NS
Documentation Technology areas
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
/
Sign in
  • Google Kubernetes Engine (GKE)
Overview Guides Reference Resources Autopilot partner resources
S3NS
  • Documentation
    • Overview
    • Guides
    • Reference
    • Resources
    • Autopilot partner resources
  • Technology areas
    • More
  • Cross-product tools
    • More
  • Kubernetes Engine
  • Authenticate to the GKE API
  • All APIs and references
  • API organization and structure
  • API permissions
  • GKE API
    • Overview
    • v1 API
      • REST Resources
      • projects.aggregated.usableSubnetworks
        • Overview
        • list
      • projects.locations
        • Overview
        • getServerConfig
      • projects.locations.clusters
        • Overview
        • checkAutopilotCompatibility
        • completeIpRotation
        • create
        • delete
        • get
        • getJwks
        • list
        • setAddons
        • setLegacyAbac
        • setLocations
        • setLogging
        • setMaintenancePolicy
        • setMasterAuth
        • setMonitoring
        • setNetworkPolicy
        • setResourceLabels
        • startIpRotation
        • update
        • updateMaster
        • fetchClusterUpgradeInfo
      • projects.locations.clusters.nodePools
        • Overview
        • completeUpgrade
        • create
        • delete
        • get
        • list
        • rollback
        • setAutoscaling
        • setManagement
        • setSize
        • update
        • fetchNodePoolUpgradeInfo
      • projects.locations.operations
        • Overview
        • cancel
        • get
        • list
      • projects.zones
        • Overview
        • getServerconfig
      • projects.zones.clusters
        • Overview
        • addons
        • completeIpRotation
        • create
        • delete
        • get
        • legacyAbac
        • list
        • locations
        • logging
        • master
        • monitoring
        • resourceLabels
        • setMaintenancePolicy
        • setMasterAuth
        • setNetworkPolicy
        • startIpRotation
        • update
        • fetchClusterUpgradeInfo
      • projects.zones.clusters.nodePools
        • Overview
        • autoscaling
        • create
        • delete
        • get
        • list
        • rollback
        • setManagement
        • setSize
        • update
        • fetchNodePoolUpgradeInfo
      • projects.zones.operations
        • Overview
        • cancel
        • get
        • list
      • Types
      • Action
      • ClusterUpdate
      • ClusterUpgradeInfo
      • ConfidentialNodes
      • ContainerdConfig
      • EventType
      • GcfsConfig
      • GetOpenIDConfigRequest
      • GetOpenIDConfigResponse
      • LinuxNodeConfig
      • ListClustersResponse
      • ListNodePoolsResponse
      • ListOperationsResponse
      • MaxPodsConstraint
      • NodeConfig
      • NodeKubeletConfig
      • NodeLabels
      • NodeManagement
      • NodePoolLoggingConfig
      • NodePoolUpgradeInfo
      • NodeTaints
      • PodCIDROverprovisionConfig
      • ResourceLabels
      • ResourceManagerTags
      • SecurityBulletinEvent
      • ServerConfig
      • ShieldedInstanceConfig
      • State
      • StatusCondition
      • UpgradeAvailableEvent
      • UpgradeDetails
      • UpgradeEvent
      • UpgradeInfoEvent
      • UpgradeResourceType
      • UpgradeSettings
    • v1beta1 API
      • REST Resources
      • projects.aggregated.usableSubnetworks
        • Overview
        • list
      • projects.locations
        • Overview
        • getServerConfig
        • list
      • projects.locations.clusters
        • Overview
        • checkAutopilotCompatibility
        • completeIpRotation
        • create
        • delete
        • fetchClusterUpgradeInfo
        • get
        • getJwks
        • list
        • setAddons
        • setLegacyAbac
        • setLocations
        • setLogging
        • setMaintenancePolicy
        • setMasterAuth
        • setMonitoring
        • setNetworkPolicy
        • setResourceLabels
        • startIpRotation
        • update
        • updateMaster
      • projects.locations.clusters.nodePools
        • Overview
        • completeUpgrade
        • create
        • delete
        • fetchNodePoolUpgradeInfo
        • get
        • list
        • rollback
        • setAutoscaling
        • setManagement
        • setSize
        • update
      • projects.locations.operations
        • Overview
        • cancel
        • get
        • list
      • projects.zones
        • Overview
        • getServerconfig
      • projects.zones.clusters
        • Overview
        • addons
        • completeIpRotation
        • create
        • delete
        • fetchClusterUpgradeInfo
        • get
        • legacyAbac
        • list
        • locations
        • logging
        • master
        • monitoring
        • resourceLabels
        • setMaintenancePolicy
        • setMasterAuth
        • setNetworkPolicy
        • startIpRotation
        • update
      • projects.zones.clusters.nodePools
        • Overview
        • autoscaling
        • create
        • delete
        • fetchNodePoolUpgradeInfo
        • get
        • list
        • rollback
        • setManagement
        • setSize
        • update
      • projects.zones.operations
        • Overview
        • cancel
        • get
        • list
      • Types
      • Action
      • ClusterUpdate
      • ClusterUpgradeInfo
      • ConfidentialNodes
      • ContainerdConfig
      • EventType
      • GcfsConfig
      • GetOpenIDConfigRequest
      • GetOpenIDConfigResponse
      • HostMaintenancePolicy
      • LinuxNodeConfig
      • ListClustersResponse
      • ListNodePoolsResponse
      • ListOperationsResponse
      • MaxPodsConstraint
      • NodeConfig
      • NodeKubeletConfig
      • NodeLabels
      • NodeManagement
      • NodePoolLoggingConfig
      • NodePoolUpgradeInfo
      • NodeTaints
      • PodCIDROverprovisionConfig
      • ResourceLabels
      • ResourceManagerTags
      • SecurityBulletinEvent
      • ServerConfig
      • ShieldedInstanceConfig
      • State
      • StatusCondition
      • UpgradeAvailableEvent
      • UpgradeDetails
      • UpgradeEvent
      • UpgradeInfoEvent
      • UpgradeResourceType
      • UpgradeSettings
    • Shared types
      • Types
      • Code
      • Status
  • gcloud CLI reference
  • Terraform reference
  • Custom resource definitions
    • ComputeClass
    • GCPDataSource
    • HighAvailabilityApplication
    • AllowlistSynchronizer
  • Client libraries
  • Kubernetes documentation (external)
  • Cloud Storage FUSE CSI driver
    • Volume attributes
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
  • Home
  • Google Kubernetes Engine (GKE)
  • Documentation
  • Reference

NodeLabels

  • JSON representation

Collection of node-level Kubernetes labels.

JSON representation
{
  "labels": {
    string: string,
    ...
  }
}
Fields
labels

map (key: string, value: string)

Map of node label keys and node label values.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-04-16 UTC.

  • Terms
  • Privacy
  • Manage cookies