I am trying to publish an existing pubsub section from a Scala application running on the Google Container Engine (i.e. it works on Kubernetes).
I have included (I think) the correct permissions for the base cluster:

However, when I try to start my Scala application, I get the following error:
2016-12-10T22:22:57.811982246Z Caused by: com.google.cloud.pubsub.PubSubException: java.lang.IllegalStateException: No NameResolverProviders found via ServiceLoader, including for DNS. This is probably due to a broken build. If using ProGuard, check your configuration
Full stack trace here .
My Scala code is very similar to a quick start guide:
val TopicName = "my-topic" val pubsub = PubSubOptions.getDefaultInstance.getService val topic = pubsub.getTopic(TopicName) ... topic.publish(Message.of(json))
I think that maybe I am missing some important Kubernetes configuration, so any help is greatly appreciated.
source share