diff --git a/cmd/cluster_create.go b/cmd/cluster_create.go index ce93b15..b5623f3 100644 --- a/cmd/cluster_create.go +++ b/cmd/cluster_create.go @@ -55,7 +55,7 @@ tks cluster create --contract-id --csp-id `, defer conn.Close() client := pb.NewClusterLcmServiceClient(conn) - ctx, cancel := context.WithTimeout(context.Background(), time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Minute) defer cancel() data := make([]pb.CreateClusterRequest, 1) conf := &pb.ClusterConf{} diff --git a/cmd/service_create.go b/cmd/service_create.go index 95e0a3b..1ce74ea 100644 --- a/cmd/service_create.go +++ b/cmd/service_create.go @@ -60,7 +60,7 @@ tks service create --cluster-id --service-name `, defer conn.Close() client := pb.NewClusterLcmServiceClient(conn) - ctx, cancel := context.WithTimeout(context.Background(), time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Minute) defer cancel() ClusterId, _ := cmd.Flags().GetString("cluster-id")