KRAFT-CLOUD-INSTANCE-CREATE(1)

πŸ“¦
version 0.12.16 Β· 2 versions
, in nixpkgs unstable

πŸ’… 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 ⭐


🌸 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