Skip to content

Commit

Permalink
Re-added external IP for gcloud VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
prioux committed Feb 18, 2025
1 parent 8cb9638 commit b4b4b74
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions BrainPortal/lib/scir_gcloud_batch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,13 @@ def qsub_command #:nodoc:

command = "gcloud batch jobs submit #{gname} "
command += "--location #{gcloud_location} "
command += "--network projects/#{gcloud_project}/global/networks/default "
command += "--subnetwork projects/#{gcloud_project}/regions/#{gcloud_location}/subnetworks/default "
command += "--no-external-ip-address "

# For some ugly reason, we can't disable the external IP address interface that way,
# the compute engine layer won't be able to connect to the VM to monitor it.
# I suspect special configuration would be needed to make this work.
#command += "--network projects/#{gcloud_project}/global/networks/default "
#command += "--subnetwork projects/#{gcloud_project}/regions/#{gcloud_location}/subnetworks/default "
#command += "--no-external-ip-address "

script_name = self.arg[0]
script_command = ""
Expand Down

0 comments on commit b4b4b74

Please sign in to comment.