mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 12:38:05 +00:00
Add section on running server and agent on same node
This commit is contained in:
committed by
Denise
parent
9b8fcacd2c
commit
66d7ba3d07
@@ -185,3 +185,20 @@ You have a couple of options:
|
||||
## Persistent Data
|
||||
|
||||
{{< persistentdata >}}
|
||||
|
||||
## Running `rancher/rancher` and `rancher/rancher-agent` on the same node
|
||||
|
||||
In the situation where you want to use a single node to run Rancher and to be able to add the same node to a cluster, you have to adjust the host ports mapped for the `rancher/rancher` container.
|
||||
|
||||
If a node is added to a cluster, it deploys the nginx ingress controller which will use port 80 and 443. This will conflict with the default ports we advice to expose for the `rancher/rancher` container.
|
||||
|
||||
Please note that this setup is not recommended for production use, but can be convenient for development/demo purposes.
|
||||
|
||||
To change the host ports mapping, replace the following part `-p 80:80 -p 443:443` with `-p 8080:80 -p 8443:443`:
|
||||
|
||||
```
|
||||
docker run -d --restart=unless-stopped \
|
||||
-p 8080:80 -p 8443:443 \
|
||||
rancher/rancher:latest
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user