Before you perform operations in Telecom Network Automation, you must set up a Google Cloud project. To set up a project, complete the following steps.
Before you begin
Before continuing, ensure you have the following:
The latest version of the
gcloudcommand line interface (CLI) tool. Do either of the following:- For full installation instructions, see Install the gcloud CLI.
Update your existing version using the following command:
gcloud components update
Confirm you have version 1.25.8 of the
kubectlCLI.Have one or more GDC racks at target locations.
- The software must run version 1.5.0. For more information, see Installation requirements.
Set up your Google Cloud project
Before you provision Telecom Network Automation, you must set up a Google Cloud project:
Set your default project:
gcloud config set project PROJECT_NAMEReplace PROJECT_NAME with a name for your project.
In the default project, start the GKE compute endpoints:
gcloud services enable compute.googleapis.comAssign the environment variables:
export PROJECT_ID=$(gcloud config get-value project) export PROJECT_NUM=$(gcloud projects describe $PROJECT_ID --format="value(projectNumber)") export LOCATION=ZONE # create a /workdir to clone all repositories mkdir ~/workdir cd ~/workdirReplace ZONE with the zone closest to your location, such as
us-central1-a.Assign IAM roles to users in your organization to grant permission to your Google Cloud project:
gcloud projects add-iam-policy-binding $PROJECT_ID --member='user:EMAIL' --role='ROLE'Replace the following:
- EMAIL: the email of the user to bind the role to.
- ROLE: the name of the role.
For example,
roles/owner. For a full list of Telecom Network Automation roles, see Architecture and permissions.
Enable Telecom Network Automation endpoints in the project:
gcloud services enable telcoautomation.googleapis.comSet the default
gcloudtimeout:gcloud config set http_timeout 3600Resolve Telecom Network Automation deployments by granting the Logs Viewer role to the limited-access Telecom Network Automation monitoring group:
gcloud projects add-iam-policy-binding $PROJECT_ID --member=group:cloud-gmec-tna-monitoring-team@twosync.google.com --role=roles/logging.viewer