Create Managed EKS via dataikuapi.

abdoulaye
Level 3
Create Managed EKS via dataikuapi.

Hello, I'm trying to create a managed EKS like in image left created manualy inside dss design. I'want to use api client to automate this. After reading and getting right packages to create_cluster() i'ts till 

 

import dataikuapi
import json

client = dataikuapi.DSSClient(host, api_key)
# Read the JSON file
with open('eks.json', 'r') as file:
    json_data = json.load(file)

# 
json_string = json.dumps(json_data)
client.create_cluster(cluster_name='mister-cluster', params=json_string, cluster_architecture='KUBERNETES')

 

 This create >_manual without taking data in json.

 

How to create managed EKS cluster via this api?

0 Kudos
2 Replies
Turribeach

This won't necesarily fix your problem but might help you debug it. When you create a cluster you can get a handle to it:

 

cluster_handle = client.create_cluster(cluster_name='mister-cluster', params=json_string, cluster_architecture='KUBERNETES')

 

Then you can use cluster_handle.get_settings().get_raw() to get the cluster settings and even modify them and use save() to save the changes.

0 Kudos
abdoulaye
Level 3
Author

Thanks for your answer, what kind of parameters take the cluster_type? I ve see only manual. No docs about this. Any ideas ?

0 Kudos