Skip to main content

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]
FlagType (if applicable)Description
--portstringPort to expose. (Required)
--protocolstringProtocol to expose (valid values are "http" and "https"). Specify multiple or separate values with commas.
--wildcardboolCreate a wildcard DNS entry and TLS certificate for this port.
--outputstringThe output format to use. Value values: json, table or wide. Default: table
-h, --helpHelp 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