This article explains how to configure Static IPs through the Crusoe Console, CLI, and Terraform . The process is seamless and does not interrupt running VMs.
Steps:
Crusoe Console:
Impact : Non-disruptive toggle to static IP without downtime.
- Navigate to the Public IP section of the VM details.
- Toggle the IP type from Dynamic to Static.
- Steps with screenshots:
1. Initial state with a Dynamic public IP:
2. Select Static from the drop-down menu:
3. Confirm the public IP is now Static
Using Crusoe CLI
Impact : Immediate update applies to the running VM seamlessly.
- Run the following command to update the public IP type.
crusoe compute vms update <vm-name> --public-ip-type static
- Example:
Using Terraform
Impact : Changes are managed in-place. Use lifecycle policies to avoid unintentional resource re-creation.
- Modify the Terraform configuration to set the public IP type as Static.
resource "crusoe_compute_instance" "h100_vm" {
.
.
.
network_interfaces = [
{
public_ipv4 = {
type = "static"
}
}
]
} - Steps with Screenshots:
1. Initial state with Dynamic IP, change it to static:
2. Apply changes
Note: Private IPs are always static and unaffected by these changes.
Comments
0 comments
Please sign in to leave a comment.