-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doc: Add instruction to access service from host to crc instance
fixes: #4398
- Loading branch information
1 parent
f4ccc58
commit b174d0c
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
docs/modules/getting_started/partials/proc_connecting-to-host.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
= Accessing services running on your host from {prod} | ||
|
||
When you run services on your host, you can configure {prod} to access these services. | ||
|
||
.Prerequisites | ||
* You have a service which is running on your host and want to consume it with {prod}. | ||
* You are using the user mode network. On {mac} and {msw} this is the default behavior. | ||
.Procedure | ||
. Enable accessing services from host to {prod}: | ||
+ | ||
---- | ||
$ crc config set host-network-access true | ||
---- | ||
|
||
. Verify that the {prod} configuration uses user network mode and enables host network access: | ||
+ | ||
---- | ||
$ crc config view | ||
[...] | ||
- network-mode : user | ||
- host-network-access : true | ||
[...] | ||
---- | ||
|
||
. If {prod} instance is already running then restart it (stop => start), otherwise just start it. | ||
+ | ||
---- | ||
$ crc stop && crc start | ||
---- | ||
|
||
.Verification | ||
Assuming your service is running on the host on port `8080`, to access | ||
it from the {prod} instance, use `host.crc.testing:8080`. |