Skip to content

Commit d065f73

Browse files
Add a short explination of Subdomain wildcard policy
- changed the Note for wildcard subdomain
1 parent 38b2087 commit d065f73

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

docs/generated/oc_by_example_content.adoc

+4
Original file line numberDiff line numberDiff line change
@@ -1695,6 +1695,10 @@ Expose a replicated application as a service or route
16951695
# Create a route and specify a hostname
16961696
oc expose service nginx --hostname=www.example.com
16971697
1698+
# Create a route with wildcard
1699+
oc expose service nginx --hostname=x.example.com --wildcard=Subdomain
1700+
This would be equivalent to *.example.com. NOTE: only hosts are matched by the wildcard, subdomains would not be included.
1701+
16981702
# Expose a deployment configuration as a service and use the specified port
16991703
oc expose dc ruby-hello-world --port=8080
17001704

docs/man/man1/oc-expose.1

+4
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ There is also the ability to expose a deployment configuration, replication cont
229229
# Create a route and specify a hostname
230230
oc expose service nginx \-\-hostname=www.example.com
231231

232+
# Create a route with wildcard
233+
oc expose service nginx \-\-hostname=x.example.com \-\-wildcard=Subdomain
234+
This would be equivalent to *.example.com. NOTE: only hosts are matched by the wildcard, subdomains would not be included.
235+
232236
# Expose a deployment configuration as a service and use the specified port
233237
oc expose dc ruby\-hello\-world \-\-port=8080
234238

docs/man/man1/openshift-cli-expose.1

+4
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ There is also the ability to expose a deployment configuration, replication cont
229229
# Create a route and specify a hostname
230230
openshift cli expose service nginx \-\-hostname=www.example.com
231231

232+
# Create a route with wildcard
233+
openshift cli expose service nginx \-\-hostname=x.example.com \-\-wildcard=Subdomain
234+
This would be equivalent to *.example.com. NOTE: only hosts are matched by the wildcard, subdomains would not be included.
235+
232236
# Expose a deployment configuration as a service and use the specified port
233237
openshift cli expose dc ruby\-hello\-world \-\-port=8080
234238

pkg/cmd/cli/cmd/expose.go

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ var (
3333
# Create a route and specify a hostname
3434
%[1]s expose service nginx --hostname=www.example.com
3535
36+
# Create a route with wildcard
37+
%[1]s expose service nginx --hostname=x.example.com --wildcard=Subdomain
38+
This would be equivalent to *.example.com. NOTE: only hosts are matched by the wildcard, subdomains would not be included.
39+
3640
# Expose a deployment configuration as a service and use the specified port
3741
%[1]s expose dc ruby-hello-world --port=8080
3842

0 commit comments

Comments
 (0)