Wednesday, 26 April 2017

What is the best way to access Kubernetes REST API in GKE from Cloud Function?

I am writing a Google Cloud Function that will perform some operations in GKE(create deployment..) and I am wondering what is the best way to access the Kubernetes endpoint and also which node.js library is most suitable for this?

There are quite a few libraries available https://www.npmjs.com/browse/keyword/kubernetes so writing raw requests is not needed but how about authentication and accessing the cluster endpoint? What would be the best approach? I don't feel like opening the endpoint to the whole world is the best way(also I'm not even sure it is possible since the master node is "hidden") but so far I haven't found any "internal" connection that can be made, but I might be wrong.



via Ivan Jaros

No comments:

Post a Comment