General Issues Performance Test Automation with GCP

Problem:

ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=Failed precondition when calling the ServiceConsumerManager: tenantmanager::185014: Consumer 63754989491 sh

ould enable service:container.googleapis.com before generating a service account.

Solution:

You need to enable the services in the command prompt itself by using below command.

pawansinha4u@cloudshell:~/$ gcloud services enable container.googleapis.com

Use

gcloud services enable <service name>

Example:

gcloud services enable container.googleapis.com


Problem:

no matches for kind "Deployment" in version "extensions/v1beta1"

This is generating:

apiVersion: extensions/v1beta1

kind: Deployment

Solution:

This Deployment version was deprecated and no longer works in recent versions of k8s

Now you have to specify apiVersion: apps/v1.