google-compute-engine

How to specify preemptible GPU Deep Learning Virtual Machine on GCP

一曲冷凌霜 提交于 2020-01-23 12:04:49
问题 I can't figure out how to specify preemptible GPU Deep Learning VM on GCP This what I used: export IMAGE_FAMILY="tf-latest-gpu" export ZONE="europe-west4-a " export INSTANCE_NAME="deeplearning" gcloud compute instances create $INSTANCE_NAME \ --zone=$ZONE \ --image-family=$IMAGE_FAMILY \ --image-project=deeplearning-platform-release \ --maintenance-policy=TERMINATE \ --accelerator='type=nvidia-tesla-v100,count=2' \ --metadata='install-nvidia-driver=True' Thank you! 回答1: You can create a

how to obtain GCR access token with python / listing docker images

喜欢而已 提交于 2020-01-23 07:27:32
问题 The access token im getting with gcloud auth print-access-token is obviously a different access token than the one i can get with some basic python code: export GOOGLE_APPLICATION_CREDENTIALS=/the-credentials.json from oauth2client.client import GoogleCredentials credentials = GoogleCredentials.get_application_default() credentials.get_access_token() What i am trying to do is get a token that would work with: curl -u _token:<mytoken> https://eu.gcr.io/v2/my-project/my-docker-image/tags/list I

How to create ftp (vsftpd) in google cloud compute engine?

亡梦爱人 提交于 2020-01-22 22:50:26
问题 How to create ftp in google cloud compute engine? I can connect via SFTP without any issues, but my company is using a software to connect via FTP to download a XML file from the server. Unfortunately that software doesn't have SFTP connection facilities. I saw lots of examples from the internet and to connect via SFTP not FTP. Any idea's or tutorials ? 回答1: I found a way to do this, Please advice is there any risks. apt-get install vsftpd libpam-pwdfile nano /etc/vsftpd.conf And inside the

Error. Your card doesn't support automatic recurring payments-Google cloud [closed]

帅比萌擦擦* 提交于 2020-01-22 17:59:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 months ago . When I'm trying to authenticate my card with Google cloud I'm getting this error. Your card doesn't support automatic recurring payments [QR-CC3ST-02]. I got my otp and I had successfully authenticated. I also got message from my bank saying that my authentication is successful. Still Google is keep saying

kubectl pull image from gitlab unauthorized: HTTP Basic: Access denied

痞子三分冷 提交于 2020-01-22 10:40:16
问题 I am trying to configure gitlab ci to deploy app to google compute engine. I have succesfully pushed image to gitlab repository but after applying kubernetes deployment config i see following error in kubectl describe pods: Failed to pull image "registry.gitlab.com/proj/subproj/api:v1": rpc error: code = 2 desc = Error response from daemon: {"message":"Get https://registry.gitlab.com/v2/proj/subproj/api/manifests/v1: unauthorized: HTTP Basic: Access denied"} Here is my deployment gitlab-ci

Cannot connect to Compute Engine instance via SSH

若如初见. 提交于 2020-01-22 07:55:41
问题 I've just created an instance using Google Cloud Platform's Compute Engine and tried to connect to it via SSH connection but it failed. I'm following the quick start here. I have generated the SSH key on my PC and have entered the pass-phrase when asked. Though I fail to succeed a log in :-( I got the PuTTY SSH's error as below snapshots. Then I get the PuTTY window inactive. 回答1: I have the same problem but found a workaround to connect via PuTTY manually. In brief Generate SSH key for the

Cannot connect to Compute Engine instance via SSH

喜夏-厌秋 提交于 2020-01-22 07:55:14
问题 I've just created an instance using Google Cloud Platform's Compute Engine and tried to connect to it via SSH connection but it failed. I'm following the quick start here. I have generated the SSH key on my PC and have entered the pass-phrase when asked. Though I fail to succeed a log in :-( I got the PuTTY SSH's error as below snapshots. Then I get the PuTTY window inactive. 回答1: I have the same problem but found a workaround to connect via PuTTY manually. In brief Generate SSH key for the

Cannot connect to Compute Engine instance via SSH

萝らか妹 提交于 2020-01-22 07:55:07
问题 I've just created an instance using Google Cloud Platform's Compute Engine and tried to connect to it via SSH connection but it failed. I'm following the quick start here. I have generated the SSH key on my PC and have entered the pass-phrase when asked. Though I fail to succeed a log in :-( I got the PuTTY SSH's error as below snapshots. Then I get the PuTTY window inactive. 回答1: I have the same problem but found a workaround to connect via PuTTY manually. In brief Generate SSH key for the

Connect Remotely to SQL Server Express instance hosted on Google Compute Engine

☆樱花仙子☆ 提交于 2020-01-17 12:10:07
问题 I'm trying to access SQL Server Express installed on Windows Server 2012 on Google Compute Engine VM. I have assigned STATIC IP to the instance and also added an exception to the firewall in Windows for port 1433 as well as in via console area of Compute Engine and allowed my IP in authentication. I tried connecting the instance remotely via STATIC IP and Instance Name ( IP\instancename ) using SQL Server authentication, I have also configured SQL Server to accept remote connections as well

Accessing Google Cloud SQL instance from Google Compute Engine?

試著忘記壹切 提交于 2020-01-17 04:04:07
问题 After spending a few hours, this is the only real documentation I can find for accessing Cloud SQL from outside of GAE: https://developers.google.com/cloud-sql/docs/external The problem is, this is for a Java application (via JDBC). I need to access my Cloud SQL DB from within a PHP, Dart, or NodeJS application. I thought by giving my GCE instance rights to connect to Cloud SQL, this would be easy. But no arrangement of socket strings (using mysql drivers) seems to be effective. For argument