<p>I have created an pub/sub topic to which I will publish a message every time an new object is uploaded to the bucket. Now I want to create a subscription to push a notification to an endpoint every time a new object is uploaded to that bucket. Following the documentation, I wanted something like that:</p>

<p><code>
gcloud alpha pubsub subscriptions create orderComplete \
        --topic projects/PROJECT-ID/topics/TOPIC \
        --push-endpoint http://localhost:5000/ENDPOINT/
        --ack-deadline=60
</code>
However my app is running on kubernetes and it seems that pub/sub cannot reach my endpoint. Any suggestions?</p>

<p>Yeah, so as @jakub-bujny points out you need a SSL endpoint. So one solution, on GKE, to use <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/managed-certs" rel="nofollow noreferrer">google's managed certificates</a> with an Ingress resource (link shows you how)</p>
