Implement SSH user data handling and adjust volume size
- Added functions to generate SSH user data in cloud-config format and encode it in Base64 for server creation. - Updated the `create_gpu_server` function to include public key handling for SSH access. - Adjusted the default boot volume size from 40GB to 30GB in `os_client.py`. - Enhanced the `cmd_up` function to manage SSH key injection and server state more effectively. - Improved logging for SSH connection attempts and error handling in `wait_ssh` to provide clearer feedback on authentication issues.
This commit is contained in:
@@ -21,7 +21,7 @@ SG_NAME = "gpu-rent"
|
||||
BOOT_VOLUME_NAME = "gpu-rent-boot"
|
||||
DATA_VOLUME_NAME = "gpu-rent-data"
|
||||
SUBNET_CIDR = "192.168.77.0/24"
|
||||
BOOT_VOLUME_SIZE_GB = 40
|
||||
BOOT_VOLUME_SIZE_GB = 30
|
||||
|
||||
|
||||
def connect(cfg: Config):
|
||||
|
||||
Reference in New Issue
Block a user