Hi,
I can’t find the actual price (per hour) of the instance I created with the gcloud cli. Can anyone help me here?
When you create an instance in the browser it shows you the price of that instance.
But I had to use the command line tool, because the browser gui didn’t let me create a preemptible instance based on a marketplace image.
This is the command I used and it worked well, if someone wants to use it:
export IMAGE_FAMILY="tf-latest-gpu"
export ZONE="us-west1-b"
export INSTANCE_NAME="my-workhorse"
export INSTANCE_TYPE="n1-highmem-8"
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=1" \
--machine-type=$INSTANCE_TYPE \
--metadata="install-nvidia-driver=True" \
--preemptible \
--boot-disk-size=200GB \
--boot-disk-type=pd-ssd