cluster port expose
Expose a port on a cluster to the public internet. This command creates a DNS entry and TLS certificate (if "https") for the specified port on the cluster.
A wildcard DNS entry and TLS certificate can be created by specifying the --wildcard
flag. This will take extra time to provision.
note
This feature supports only VM cluster distributions. For more information, see VM Cluster in Supported Compatibility Matrix Cluster Types.
Usage
replicated cluster port expose CLUSTER_ID --port PORT [flags]
Flag | Type (if applicable) | Description |
---|---|---|
--port | string | Port to expose. (Required) |
--protocol | string | Protocol to expose (valid values are "http" and "https"). Specify multiple or separate values with commas. |
--wildcard | bool | Create a wildcard DNS entry and TLS certificate for this port. |
--output | string | The output format to use. Value values: json, table or wide. Default: table |
-h, --help | Help for the command. |
Example
$ replicated cluster port expose 05929b24 --port 8080 --protocol https --wildcard
ID CLUSTER PORT PROTOCOL EXPOSED PORT WILDCARD STATUS
d079b2fc 8080 https https://happy-germain.ingress.replicatedcluster.com true pending