Skip to content

Commit

Permalink
Doc: Add instruction to access service from host to crc instance
Browse files Browse the repository at this point in the history
fixes: #4398
  • Loading branch information
praveenkumar committed Oct 22, 2024
1 parent f4ccc58 commit b174d0c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/modules/getting_started/pages/networking.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ include::partial$ref_reserved-ip-subnets.adoc[leveloffset=+1]

include::partial$proc_starting-behind-proxy.adoc[leveloffset=+1]

include::partial$proc_connecting-to-host.adoc[leveloffset=+1]

include::partial$proc_setting-up-remote-server.adoc[leveloffset=+1]

include::partial$proc_connecting-to-remote-instance.adoc[leveloffset=+1]
35 changes: 35 additions & 0 deletions docs/modules/getting_started/partials/proc_connecting-to-host.adoc
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`.

0 comments on commit b174d0c

Please sign in to comment.