Muhammed Roshan
Muhammed Roshan

Reputation: 159

How to tag and label Google GCP load balancers?

I am not seeing an option to tag google load balancers. I can do it for compute instances. How can I tag LBs ?

Regards,

Muhammed Roshan

Upvotes: 7

Views: 3941

Answers (2)

Sergey Shcherbakov
Sergey Shcherbakov

Reputation: 4778

It is now also possible to set labels on load balancer forwarding rules (as well as on static external IP addresses and VPN tunnels)

E.g.

gcloud compute forwarding-rules update my-ilb --update-labels=key=value

Please check for more details in the gcloud reference documentation.

Upvotes: 1

PrecariousJimi
PrecariousJimi

Reputation: 1533

It's not supported yet.

List of currently resource types supported by Labels functionality as per Compute Engine documentation:

  • Virtual machine instances
  • Forwarding rules (Alpha)
  • Images
  • Persistent disks
  • Persistent disk snapshots
  • Static external IP addresses (Alpha)
  • VPN tunnels (Alpha)

Upvotes: 5

Related Questions