KRAFT-CLOUD-INSTANCE-CREATE(1)
π kraft-cloud-instance-create β NAME
okay so bestie, this is kraft-cloud-instance-create and it does exactly one iconic thing: create an instance. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
kraft cloud instance create [FLAGS] IMAGE [-- ARGS]
π¦ DESCRIPTION π¦
You're creating an instance on Unikraft Cloud, starting from an image. That's the whole plot. Image in, instance out, main character energy fr fr. π
π OPTIONS π
so many flags, but every single one is serving a purpose, no cap:
-c,--certificate=[]β the certificates you wanna use for the service-d,--domain=[]β the domain names to use for the service--entrypoint=[]β set the entrypoint for the instance-e,--env=[]β environmental variables-f,--feature=[]β list of features to enable-h,--help[=false]β help for create-M,--memory=""β specify the amount of memory to allocate (MiB increments)-n,--name=""β specify the name of the instance-o,--output="list"β set output format. Options:table,yaml,json,list,raw-p,--port=[]β specify the port mapping between external to internal-R,--replicas=0β number of replicas of the instance--restart="never"β set the restart policy for the instance (never/always/on-failure)--rollout="prompt"β set the rollout strategy for an instance which has been previously run in the provided service--rollout-qualifier="image"β set the rollout qualifier used to determine which instances should be affected by the strategy in the supplied service--rollout-wait=10sβ time to wait before performing rolling out action (ms/s/m/h)--scale-to-zero="off"β scale to zero policy of the instance (on/off/idle)--scale-to-zero-cooldown=0sβ cooldown period before scaling to zero (ms/s/m/h)--scale-to-zero-stateful[=false]β save state when scaling to zero-g,--service=""β attach this instance to an existing service-S,--start[=false]β immediately start the instance after creation-s,--subdomain=[]β set the subdomains to use when creating the service-V,--vcpus=0β specify the number of vCPUs to allocate-v,--volume=[]β list of volumes to attach instance to
π OPTIONS INHERITED FROM PARENT COMMANDS π
the nepo babies of the flag world, but make it useful π«Ά:
--allow-insecure[=false]β allow insecure connections to the Unikraft Cloud API--metro=""β Unikraft Cloud metro location--token=""β Unikraft Cloud access token
π₯ EXAMPLES π₯
π example one β nginx, but make it live
create a new NGINX instance and start it immediately. map the external port 443 to the internal port 8080 which the application listens on.
$ kraft cloud instance create \
--start \
--port 443:8080 \
nginx:latest
π example two β the elaborate port expression
this command is the same as above, however using the more elaborate port expression. this is because in fact we need need to accept TLS and HTTP connections and redirect port 8080 to port 443. the above example exists only as a shortcut for what is written below:
$ kraft cloud instance create \
--start \
--port 443:8080/http+tls \
--port 80:443/http+redirect \
nginx:latest
not me pointing out that the original says "need need" β yes bestie, i said it twice too, that's how much we need it π
π§ example three β volumes, plural, obsessed
attach two existing volumes to the vm, one read-write at /data and another read-only at /config:
$ kraft cloud instance create \
--start \
--volume my-data-vol:/data \
--volume my-config-vol:/config:ro \
nginx:latest
β SEE ALSO β
kraft-cloud-instance(1)β go read that one next, iykyk
πΈ HISTORY πΈ
1-Jan-1980 β Auto generated by KraftKit. yes, 1980. she's vintage. absolute icon behavior. πβ¨
and that's the whole page bestie!! rendered from the KraftKit Documentation, dated Jan 1980, and living under the KraftKit CLI(1) banner β go forth and create instances, you gorgeous genius ππ π¦
π¦ where this page comes from
- nixpkgs unstable: kraft 0.12.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms