mirror of
https://github.com/psviderski/uncloud.git
synced 2026-11-10 20:54:17 +00:00
fix(docs): correct published port protocol default for 'uc run'
This commit is contained in:
@@ -106,11 +106,12 @@ func NewRunCommand(groupID string) *cobra.Command {
|
|||||||
cmd.Flags().StringSliceVarP(&opts.publish, "publish", "p", nil,
|
cmd.Flags().StringSliceVarP(&opts.publish, "publish", "p", nil,
|
||||||
"Publish a service port to make it accessible outside the cluster. Can be specified multiple times.\n"+
|
"Publish a service port to make it accessible outside the cluster. Can be specified multiple times.\n"+
|
||||||
"Format: [hostname:]container_port[/protocol] or [host_ip|host_prefix:]host_port:container_port[/protocol]@host\n"+
|
"Format: [hostname:]container_port[/protocol] or [host_ip|host_prefix:]host_port:container_port[/protocol]@host\n"+
|
||||||
"Supported protocols: tcp, udp, http, https (default is tcp). If a hostname for http(s) port is not specified\n"+
|
"Supported protocols: tcp, udp, http, https. The protocol defaults to https if a hostname is specified,\n"+
|
||||||
"and a cluster domain is reserved, service-name.cluster-domain will be used as the hostname.\n"+
|
"otherwise tcp. http(s) ports without a hostname use 'service-name.cluster-domain' as the default hostname\n"+
|
||||||
|
"if a cluster domain is reserved.\n"+
|
||||||
"Examples:\n"+
|
"Examples:\n"+
|
||||||
" -p 8080/https Publish port 8080 as HTTPS via reverse proxy with default service-name.cluster-domain hostname\n"+
|
" -p 8080/https Publish port 8080 as HTTPS via reverse proxy with default service-name.cluster-domain hostname\n"+
|
||||||
" -p app.example.com:8080/https Publish port 8080 as HTTPS via reverse proxy with custom hostname\n"+
|
" -p app.example.com:8080 Publish port 8080 as HTTPS via reverse proxy with custom hostname\n"+
|
||||||
// TODO: add support for publishing L4 tcp/udp ports.
|
// TODO: add support for publishing L4 tcp/udp ports.
|
||||||
//" -p 9000:8080 Publish port 8080 as TCP port 9000 via reverse proxy\n"+
|
//" -p 9000:8080 Publish port 8080 as TCP port 9000 via reverse proxy\n"+
|
||||||
" -p 53:5353/udp@host Bind UDP port 5353 to host port 53\n"+
|
" -p 53:5353/udp@host Bind UDP port 5353 to host port 53\n"+
|
||||||
|
|||||||
@@ -30,11 +30,12 @@ uc run IMAGE [COMMAND...] [flags]
|
|||||||
--privileged Give extended privileges to service containers. This is a security risk and should be used with caution.
|
--privileged Give extended privileges to service containers. This is a security risk and should be used with caution.
|
||||||
-p, --publish strings Publish a service port to make it accessible outside the cluster. Can be specified multiple times.
|
-p, --publish strings Publish a service port to make it accessible outside the cluster. Can be specified multiple times.
|
||||||
Format: [hostname:]container_port[/protocol] or [host_ip|host_prefix:]host_port:container_port[/protocol]@host
|
Format: [hostname:]container_port[/protocol] or [host_ip|host_prefix:]host_port:container_port[/protocol]@host
|
||||||
Supported protocols: tcp, udp, http, https (default is tcp). If a hostname for http(s) port is not specified
|
Supported protocols: tcp, udp, http, https. The protocol defaults to https if a hostname is specified,
|
||||||
and a cluster domain is reserved, service-name.cluster-domain will be used as the hostname.
|
otherwise tcp. http(s) ports without a hostname use 'service-name.cluster-domain' as the default hostname
|
||||||
|
if a cluster domain is reserved.
|
||||||
Examples:
|
Examples:
|
||||||
-p 8080/https Publish port 8080 as HTTPS via reverse proxy with default service-name.cluster-domain hostname
|
-p 8080/https Publish port 8080 as HTTPS via reverse proxy with default service-name.cluster-domain hostname
|
||||||
-p app.example.com:8080/https Publish port 8080 as HTTPS via reverse proxy with custom hostname
|
-p app.example.com:8080 Publish port 8080 as HTTPS via reverse proxy with custom hostname
|
||||||
-p 53:5353/udp@host Bind UDP port 5353 to host port 53
|
-p 53:5353/udp@host Bind UDP port 5353 to host port 53
|
||||||
-p 192.168.76.0/24:53:5353/udp@host Bind UDP port 5353 to host port 53 on every host IP address
|
-p 192.168.76.0/24:53:5353/udp@host Bind UDP port 5353 to host port 53 on every host IP address
|
||||||
contained in the prefix 192.168.76.0/24
|
contained in the prefix 192.168.76.0/24
|
||||||
|
|||||||
@@ -30,11 +30,12 @@ uc service run IMAGE [COMMAND...] [flags]
|
|||||||
--privileged Give extended privileges to service containers. This is a security risk and should be used with caution.
|
--privileged Give extended privileges to service containers. This is a security risk and should be used with caution.
|
||||||
-p, --publish strings Publish a service port to make it accessible outside the cluster. Can be specified multiple times.
|
-p, --publish strings Publish a service port to make it accessible outside the cluster. Can be specified multiple times.
|
||||||
Format: [hostname:]container_port[/protocol] or [host_ip|host_prefix:]host_port:container_port[/protocol]@host
|
Format: [hostname:]container_port[/protocol] or [host_ip|host_prefix:]host_port:container_port[/protocol]@host
|
||||||
Supported protocols: tcp, udp, http, https (default is tcp). If a hostname for http(s) port is not specified
|
Supported protocols: tcp, udp, http, https. The protocol defaults to https if a hostname is specified,
|
||||||
and a cluster domain is reserved, service-name.cluster-domain will be used as the hostname.
|
otherwise tcp. http(s) ports without a hostname use 'service-name.cluster-domain' as the default hostname
|
||||||
|
if a cluster domain is reserved.
|
||||||
Examples:
|
Examples:
|
||||||
-p 8080/https Publish port 8080 as HTTPS via reverse proxy with default service-name.cluster-domain hostname
|
-p 8080/https Publish port 8080 as HTTPS via reverse proxy with default service-name.cluster-domain hostname
|
||||||
-p app.example.com:8080/https Publish port 8080 as HTTPS via reverse proxy with custom hostname
|
-p app.example.com:8080 Publish port 8080 as HTTPS via reverse proxy with custom hostname
|
||||||
-p 53:5353/udp@host Bind UDP port 5353 to host port 53
|
-p 53:5353/udp@host Bind UDP port 5353 to host port 53
|
||||||
-p 192.168.76.0/24:53:5353/udp@host Bind UDP port 5353 to host port 53 on every host IP address
|
-p 192.168.76.0/24:53:5353/udp@host Bind UDP port 5353 to host port 53 on every host IP address
|
||||||
contained in the prefix 192.168.76.0/24
|
contained in the prefix 192.168.76.0/24
|
||||||
|
|||||||
Reference in New Issue
Block a user