google-compute-engine

GCP static public IP on VM NIC

余生颓废 提交于 2021-01-29 07:49:40
问题 I have a problem with a a particular licensed software that I have installed on a VM, and the software license should be tie to a public IP address on the NIC of the VM. The software checks the IP address of the server where the application is installed and verifies against the public license server of the application manufacturer, and if the IP address doesn't match, the software stops working. The software company has issue temporary license to my VM using private IP address, since I wasn't

GCE RAM and CPU usage in BigQuery

别等时光非礼了梦想. 提交于 2021-01-29 06:07:57
问题 Is there a way to export Google Compute Engine instances logs into BigQuery which will allow you to query the exported logs to get CPU and RAM usage for a selected period using the instance label? I reviewed already the Default Logging Agent logs doc which shows what Stackdriver Logging collects but RAM and CPU usage isn't mentioned. I also found this Viewing Activity Logs and Exporting with the Logs Viewer but none of them are relevant to my need. Thanks in advance 回答1: Stackdriver has some

Mysterious metrics in GCP Compute Engine API when the account does not use GCP compute

六月ゝ 毕业季﹏ 提交于 2021-01-29 06:05:27
问题 I have GCP account which I am using only Datastore in Native mode (Firestore), and Firebase Hosting/Auth. In this account, I am seeing a lot of compute related metrics getting generated from my dashboard as shown below. I have 0 ec2 compute vm instances running & no Kubernetes cluster running in the account. Is it common to have these metrics generated in GCP even when you are not using anything in compute ? If I do not get charged for these requests, I am guess I can ignore them... but I am

How do I pass arguments to docker run in a CLI (Command Line Interface)?

假装没事ソ 提交于 2021-01-28 13:04:15
问题 I need my image to start with this command: docker run -it --rm --security-opt seccomp=./chrome.json <image_id> I'm deploying it to Google Compute Engine: https://cloud.google.com/compute/docs/containers/deploying-containers As far as I understand, I can't specify arguments there, so Google Cloud starts it with just docker run command. How do I pass these arguments? Maybe I can specify those args in Dockerfile somehow? 回答1: When you use the feature to deploy container directly on Compute

How do I pass arguments to docker run in a CLI (Command Line Interface)?

帅比萌擦擦* 提交于 2021-01-28 13:01:55
问题 I need my image to start with this command: docker run -it --rm --security-opt seccomp=./chrome.json <image_id> I'm deploying it to Google Compute Engine: https://cloud.google.com/compute/docs/containers/deploying-containers As far as I understand, I can't specify arguments there, so Google Cloud starts it with just docker run command. How do I pass these arguments? Maybe I can specify those args in Dockerfile somehow? 回答1: When you use the feature to deploy container directly on Compute

How do I pass arguments to docker run in a CLI (Command Line Interface)?

柔情痞子 提交于 2021-01-28 13:01:36
问题 I need my image to start with this command: docker run -it --rm --security-opt seccomp=./chrome.json <image_id> I'm deploying it to Google Compute Engine: https://cloud.google.com/compute/docs/containers/deploying-containers As far as I understand, I can't specify arguments there, so Google Cloud starts it with just docker run command. How do I pass these arguments? Maybe I can specify those args in Dockerfile somehow? 回答1: When you use the feature to deploy container directly on Compute

Google Cloud Platform fix SSH

て烟熏妆下的殇ゞ 提交于 2021-01-28 11:19:53
问题 I have a problem with SSH access on my google compute engine . I made a server, set up the application on it and configured the domain and everything works. After a few days when I wanted to approach her to make changes my SSH didn’t work. I have one assumption I was turning on firewall and I didn't add a rule for SSH , maybe that's a problem? But how to access the machine now and enable it? Thanks in advance . 回答1: To solve your issue you can connect to your VM instance via serial console.

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

Mount Google Cloud Filestore inside a docker container with Debian

岁酱吖の 提交于 2021-01-28 08:30:45
问题 I want to mount Cloud Filestore inside a docker container which is Debian. When I try to mount it I get: mount.nfs: timeout set for Wed Feb 27 12:35:07 2019 mount.nfs: trying text-based options 'vers=4.2,addr=10.32.222.111,clientaddr=172.17.0.2' mount.nfs: mount(2): Operation not permitted mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use '-o nolock' to keep locks local, or start statd. It's running in a Debian VM inside Google Cloud. Is there any

Problem with data transfer from Cloud Build container to Google Compute Engine instance

一个人想着一个人 提交于 2021-01-28 06:09:01
问题 Currently I'm using Cloud Build to produce some artifacts that I need to deploy to GCE instance. I've tried to use gcloud builder for this purpose with the following args: - name: 'gcr.io/cloud-builders/gcloud' args: ['compute', 'scp', '--zone=<zone_id>', '<local_path>', '<google compute engine instance name>:<instance_path>'] and build fails with the following error: ERROR: (gcloud.compute.scp) Could not SSH into the instance. It is possible that your SSH key has not propagated to the