How do I use gcloud compute ssh with ssh's -t flag (pseudo-terminal allocation)?
You can use --ssh-flag to pass the flags to the ssh command.
gcloud compute ssh INSTANCE --zone=ZONE --ssh-flag="-t"