Zudoku
unikraft services

unikraft services edit

Edit a service group.

Code
unikraft services edit <target> [flags]

Examples

Add a new service port:

TerminalCode
unikraft service edit demo-service --service 8443:8080/tls

Options

Code
--add <name>=<value> Key-value pairs to add to the service. --add-file <name>=<filename> Files containing key-value pairs to add to the service. --autokill <key>=<value> Autokill options. time: time the group must stay without instances before it is deleted, such as 5m, 0 disables --cmd CMD Run a command to edit fields (receives YAML on stdin, outputs edited YAML on stdout). --del <name>=<value> Keys to delete from the service. --del-file <name>=<filename> Files containing keys to delete from the service. --domain fqdn Domain for the group. myapp: a bare label becomes a subdomain of the metro example.com: a dotted name is a custom domain, with a certificate issued automatically unless given as fqdn=example.com,certificate=my-cert --dry-run Print patches without applying them. -f, --field FIELD Specify which fields to include in the output. --hard-limit n Maximum concurrent requests per instance, at least the soft limit. Between 1 and 65535, defaults to 65535 on create. Excess requests go to another instance or fail. --load LOAD Load fields from a YAML file. -o, --output OUTPUT Output format. One of: kv, table, json, yaml, raw, quiet, template. --save FILE Save editable fields as YAML to a file (use - for stdout). --service <src>:<dest>[/<handlers>] Published port as SOURCE:DESTINATION[/HANDLERS], with handlers joined by +. Port 80 must use http, port 443 http+tls, and any other port tls only. http: load balance per HTTP request instead of per TCP connection tls: terminate TLS at the platform redirect: redirect HTTP on port 80 to HTTPS, as in 80:443/http+redirect --set <name>=<value> Key-value pairs to set on the service. --set-file <name>=<filename> Files containing key-value pairs to set on the service. --soft-limit n Concurrent requests per instance before the load balancer wakes a standby instance of the group. Between 1 and 65535, defaults to 1 on create. --visual Open an editor to modify fields visually.

Options inherited from parent commands

Code
--config file Path to the configuration file. --log-level level Set the logging level. (default info) --log-type type Set the log type. (default text) --profile name Set the current profile. --telemetry Toggle usage analytics. (default true) --timeout duration Set a deadline for the command (e.g. 30s, 5m, 1h).

See Also

Last modified on