I'm trying to use the standalone gsutil
tool from within a container running in a GKE cluster, but I cannot get it to work. I believe the cluster has adequate permissions (see below). However, running
./gsutil ls gs://my-bucket/
yields
ServiceException: 401 Anonymous users does not have storage.objects.list access to bucket my-bucket.
Am I missing anything? I don't have a .boto
file, as I believe it shouldn't be necessary—or is it? This is the list of scopes that the cluster and the node pool have:
- https://www.googleapis.com/auth/compute
- https://www.googleapis.com/auth/devstorage.full_control
- https://www.googleapis.com/auth/logging.write
- https://www.googleapis.com/auth/monitoring.write
- https://www.googleapis.com/auth/pubsub
- https://www.googleapis.com/auth/servicecontrol
- https://www.googleapis.com/auth/service.management.readonly
- https://www.googleapis.com/auth/trace.append