Following quickstart, I have the controller up and running on a host. I also setup an edge router on a different host following quickstart. What do I need to do in order to have the router to talk to the controller on the first host? I can imagine that I need to somehow “merge” the pki of the two hosts and modify the edge router yaml file. A checklist would be greatly helpful.
Yeah, we need to make that guide. We keep making the doc better but it's a process that just takes a while. In the meantime, I'll make that punchlist of things to do and follow up in a bit.
Here’s a video outlining the process. We are close to having a helper function that does this, it’s just not released yet. Should be soon. Till then, here you go. Hope that helps
Steps performed:
get the external address of the controller from the config file
set some variables, then decide if this is a “private” edge router or public (see below)
export ROUTER_NAME=ER2
export ZITI_CTRL_ADVERTISED_ADDRESS="ec2-3-134-108-218.us-east-2.compute.amazonaws.com"
export ZITI_CTRL_PORT=8440
# optional - if you want to allow addressing by some specific IP
export ZITI_EDGE_ROUTER_IP_OVERRIDE="177.77.77.77"
create a config file. this makes the router ‘private’, meaning it won’t advertise that routers should link to it.
Man, that’s one of the reasons it took me a while, and why I recorded the video, so that I knew it worked. Did you perhaps run this on the machine where the quickstart was run, or did you source the .env file from the output of the quickstart? I didn’t do it that way when I tested (I’ll try now), I suspect that might be why you hit this. If not, looks like you might be hitting a bug. I am hitting that same bug with a different discourse post.
I’ll work up alternate instructions by emitting the config and editing it.
It is, yes. For this, it will probably be easier to just edit the config file directly. If you open $ZITI_HOME/er2.yaml it should have a section like this:
ctrl:
endpoint: tls:ip-172-31-45-134:6262
You want that endpoint to be the host and port of your controller. If you compare the edge router the quickstart created it should be really clear. For example, my “host it anywhere” router config looks like this:
Tôi đang cố gắng tìm hiểu cách để triển khai một bài lab nhỏ. Tôi đang làm theo các bài hướng dẫn để có thể triển khai các thành phần cơ bản theo Host OpenZiti Anywhere | OpenZiti. nhưng tôi đang bị mất phương hướng