Am trying to create a GKE cluster using the gcloud-ruby-container gem.
But there seems to be close to 0 documentation on how to do this. Not sure if am not finding the correct docs.
- I installed the gem and authenticated using service account json successfully
- Figured out how to call the create_cluster gRPC method like below. Not sure about the parent parameter though.
location_path = Google::Cloud::Container::V1::CreateClusterRequest.new(project_id: "PROJECT_ID", parent: "REGION")
response = cluster_client.create_cluster(location_path, cluster_params)
I am unable to figure out the structure of the cluster_params
object. The available options can be found in the rest API docs. But passing an object with these aattributes doesn't seem to work. Am getting an error like unknown keywords: :name, :nodePool
, ... etc.
Any ideas on how to use this client library?