gcloud

gcloud console can't view gke resources

感情迁移 提交于 2021-01-29 05:49:33
问题 I'm testing permissions on GCP on new project, I've created a user and gave basic storage.objects.get and storage.objects.list permissions and all work, but when I moved to GKE it stopped no matter how many permissions ( container.clusters.* or container.pods.* or the role Kubernetes Engine Cluster Viewer he can't view the resources with the error message Can't access project settings for project <my_project> on service container.googleapis.com [view=CONSUMER_VIEW]. any thoughts what might be

Google Cloud Text to Speech INVALID API KEY

大城市里の小女人 提交于 2021-01-29 00:33:56
问题 I followed this page: https://cloud.google.com/text-to-speech/docs/quickstart-protocol I generated an access token with: gcloud auth application-default print-access-token and upon entering this: curl -H "Authorization: Bearer "$(my_token_is_in_here) \ -H "Content-Type: application/json; charset=utf-8" \ --data "{ 'input':{ 'text':'Android is a mobile operating system developed by Google, based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and

Google Cloud Text to Speech INVALID API KEY

会有一股神秘感。 提交于 2021-01-29 00:33:55
问题 I followed this page: https://cloud.google.com/text-to-speech/docs/quickstart-protocol I generated an access token with: gcloud auth application-default print-access-token and upon entering this: curl -H "Authorization: Bearer "$(my_token_is_in_here) \ -H "Content-Type: application/json; charset=utf-8" \ --data "{ 'input':{ 'text':'Android is a mobile operating system developed by Google, based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and

Google Cloud Text to Speech INVALID API KEY

被刻印的时光 ゝ 提交于 2021-01-29 00:32:58
问题 I followed this page: https://cloud.google.com/text-to-speech/docs/quickstart-protocol I generated an access token with: gcloud auth application-default print-access-token and upon entering this: curl -H "Authorization: Bearer "$(my_token_is_in_here) \ -H "Content-Type: application/json; charset=utf-8" \ --data "{ 'input':{ 'text':'Android is a mobile operating system developed by Google, based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and

Google app engine unable to create a DevAppServer

一个人想着一个人 提交于 2021-01-28 22:28:30
问题 When trying to create a local app server to test my web app, I'm completely unable to do so. Somebody else has seen the same error here and was advised that it was an issue with JDK>12, however I'm only using java 8. I'm able to deploy the app as normal but not create the local server. I've tried it through powershell using the native gcloud CLI, using the intellij plugin and now through the maven plugin and get the same issue each time. Any help would be much appreciated. stacktrace Apr 18,

Google Kubernetes Engine (GKE) cluster `error while creating mount source path` due to `read-only file system`

耗尽温柔 提交于 2021-01-28 12:46:14
问题 I have a container with the following configuration: spec: template: spec: restartPolicy: OnFailure volumes: - name: local-src hostPath: path: /src/analysis/src type: DirectoryOrCreate containers: securityContext: privileged: true capabilities: add: - SYS_ADMIN Note that I'm intentionally omitting some other configuration parameters to keep the question short However, when I deploy it to my cluster on kubernetes on gcloud, I see the following error: Error: failed to start container "market

How to clean up after a GKE cluster created with gcloud container clusters create?

Deadly 提交于 2021-01-28 09:00:40
问题 I'm creating Kubernetes clusters programmatically for end-to-end tests in GitLab CI/CD. I'm using gcloud container clusters create . I'm doing this for half a year and created and deleted a few hundred clusters. The cost went up and down. Now, I got an unusually high bill from Google and I checked the cost breakdown. I noticed that the cost is >95% for "Storage PD Capacity". I found out that gcloud container clusters delete never deleted the Google Compute Disks created for Persistent Volume

How to setup a Powershell Script in Windows Task Scheduler with admin permissions?

前提是你 提交于 2021-01-27 19:50:56
问题 I am running the following PowerShell script that creates a Tableau backup and uploads it to Google Cloud Storage using the Windows Task Scheduler. #Tableau Server backup &$tsm maintenance backup -f $Backups_file -d -u $User -p $Password CD "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin" $backups_folder = "D:\Tableau Server\data\tabsvc\files\backups\" #default backup path for Tableau installation #&$tsm configuration get -k basefilepath.backuprestore $filename = get-childitem

How to setup a Powershell Script in Windows Task Scheduler with admin permissions?

青春壹個敷衍的年華 提交于 2021-01-27 19:17:58
问题 I am running the following PowerShell script that creates a Tableau backup and uploads it to Google Cloud Storage using the Windows Task Scheduler. #Tableau Server backup &$tsm maintenance backup -f $Backups_file -d -u $User -p $Password CD "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin" $backups_folder = "D:\Tableau Server\data\tabsvc\files\backups\" #default backup path for Tableau installation #&$tsm configuration get -k basefilepath.backuprestore $filename = get-childitem

Plain console.warn() shows up in logs with serverity “ERROR”

大城市里の小女人 提交于 2021-01-27 07:03:39
问题 When I log something with console.warn() it seems to appear in the Stackdriver logs with severity "ERROR". The Stackdriver Error Reporting does not show these errors, so it seems there they are not considered errors. This makes it impossible to filter the logs to only show me errors. Reading the Stackdriver logging docs I get the impression that I'm not supposed to use the plain javascript console functions but instead use Bunyan. Is that correct? I didn't read anywhere that I shouldn't. 回答1: