Skip to content

Yellowbrick Manager on GCP

To find the hostname (DNS name) or IP address associated with the load balancer for Yellowbrick Manager on GCP, you can use either the gcloud CLI or the Google Cloud Console. This guide will help you quickly locate this information based on specific tags associated with your load balancer.

Prerequisites

  • Ensure you have the gcloud CLI installed and configured with appropriate permissions.
  • Access to the Portal.

Option 1: Using gcloud CLI

Follow these steps to retrieve the DNS name or IP address using the gcloud CLI.

  1. Filter Load Balancers by Labels

    Use the following command to filter load balancers based on labels associated with Yellowbrick Manager. Replace PROJECT_ID with your GCP project ID.

    bash
    gcloud compute forwarding-rules list --project=PROJECT_ID --filter="labels.kubernetes_io_service_name:*yb-manager*"

This command will return a list of forwarding rules (equivalent to load balancers in GCP) that match any of the specified labels.

  1. Retrieve the DNS Name

    Once you have identified the forwarding rule, you can get its IP address:

    bash
    gcloud compute forwarding-rules describe FORWARDING_RULE_NAME --region=REGION --project=PROJECT_ID --format="get(IPAddress)"

    Replace FORWARDING_RULE_NAME with the name of your forwarding rule, and REGION with the appropriate region.

    If you need the DNS name, you can perform a reverse lookup on the IP address using a tool like nslookup or dig.

Option 2: Using Google Cloud Console

Alternatively, you can use the Using Google Cloud Console to find the hostname or IP address.

  1. Access Load Balancers

Log in to the Google Cloud Console and navigate to "Network services" > "Load balancing."

  1. Filter Load Balancers by Tags

In the load balancer list, use the search box or filter options to find forwarding rules associated with Yellowbrick Manager. Use any of the following labels:

LabelValue
cluster_yellowbrick_io_owneryb-install
kubernetes_io_service_name${instanceName}/yb-manager-service
  1. Identify the Hostname or IP Address

Once you've found the correct forwarding rule, click on it to view its details. The IP address will be displayed under the "Frontend" section.