Skip to content

Commit 632ea75

Browse files
acrocamarcduiker
andauthored
Docs for --scheduler-override-broadcast-host-port (#4721)
* Docs for `--scheduler-override-broadcast-host-port` Signed-off-by: Albert Callarisa <[email protected]> * Apply suggestions Signed-off-by: Albert Callarisa <[email protected]> --------- Signed-off-by: Albert Callarisa <[email protected]> Co-authored-by: Marc Duiker <[email protected]>
1 parent 7bc2f2c commit 632ea75

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

daprdocs/content/en/reference/cli/dapr-init.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ dapr init [flags]
4646
| `--container-runtime` | | `docker` | Used to pass in a different container runtime other than Docker. Supported container runtimes are: `docker`, `podman` |
4747
| `--dev` | | | Creates Redis and Zipkin deployments when run in Kubernetes. |
4848
| `--scheduler-volume` | | | Self-hosted only. Optionally, you can specify a volume for the scheduler service data directory. By default, without this flag, scheduler data is not persisted and not resilient to restarts. |
49+
| `--scheduler-override-broadcast-host-port` | | localhost:50006 (6060 for Windows) | Self-hosted only. Specify the scheduler broadcast host and port, for example: 192.168.42.42:50006. |
4950

5051

5152
### Examples
@@ -70,7 +71,7 @@ Dapr can also run [Slim self-hosted mode]({{< ref self-hosted-no-docker.md >}}),
7071
dapr init -s
7172
```
7273

73-
> To switch to Dapr Github container registry as the default registry, set the `DAPR_DEFAULT_IMAGE_REGISTRY` environment variable value to be `GHCR`. To switch back to Docker Hub as default registry, unset this environment variable.
74+
> To switch to Dapr Github container registry as the default registry, set the `DAPR_DEFAULT_IMAGE_REGISTRY` environment variable value to be `GHCR`. To switch back to Docker Hub as default registry, unset this environment variable.
7475
7576
**Specify a runtime version**
7677

@@ -148,7 +149,7 @@ dapr init --network mynet
148149
Verify all containers are running in the specified network.
149150

150151
```bash
151-
docker ps
152+
docker ps
152153
```
153154

154155
Uninstall Dapr from that Docker network.
@@ -157,6 +158,18 @@ Uninstall Dapr from that Docker network.
157158
dapr uninstall --all --network mynet
158159
```
159160

161+
**Specify scheduler broadcast host and port**
162+
163+
You can specify the scheduler broadcast host and port, for example: 192.168.42.42:50006.
164+
165+
This is necessary when you have to connect to the scheduler using a different host and port, as the scheduler only allows connections matching this host and port.
166+
167+
By default, the scheduler will use localhost:50006 (6060 for Windows).
168+
169+
```bash
170+
dapr init --scheduler-override-broadcast-host-port 192.168.42.42:50006
171+
```
172+
160173
{{% /codetab %}}
161174

162175
{{% codetab %}}
@@ -192,11 +205,11 @@ dapr init -k --set global.tag=1.0.0 --set dapr_operator.logLevel=error
192205

193206
You can also specify a private registry to pull container images from. As of now `dapr init -k` does not use specific images for sentry, operator, placement, scheduler, and sidecar. It relies on only Dapr runtime container image `dapr` for all these images.
194207

195-
Scenario 1 : dapr image hosted directly under root folder in private registry -
208+
Scenario 1 : dapr image hosted directly under root folder in private registry -
196209
```bash
197210
dapr init -k --image-registry docker.io/username
198211
```
199-
Scenario 2 : dapr image hosted under a new/different directory in private registry -
212+
Scenario 2 : dapr image hosted under a new/different directory in private registry -
200213
```bash
201214
dapr init -k --image-registry docker.io/username/<directory-name>
202215
```

0 commit comments

Comments
 (0)