26 lines
507 B
TypeScript
26 lines
507 B
TypeScript
import * as incus from "@kiterun/incus";
|
|
|
|
const resource = new incus.Instance("instance2", {
|
|
name: "instance2",
|
|
image: "images:ubuntu/24.04",
|
|
project: "default",
|
|
config: {
|
|
"limits.cpu": "4",
|
|
},
|
|
remote: "pizazz",
|
|
devices: [
|
|
{
|
|
name: "eth0",
|
|
type: "nic",
|
|
properties: {
|
|
network: "production",
|
|
}
|
|
}
|
|
],
|
|
waitFors: [{
|
|
type: "ipv4",
|
|
}]
|
|
})
|
|
|
|
export const ip1 = resource.ipv4Address;
|