mirror of
https://github.com/openziti/zrok.git
synced 2024-12-22 14:50:55 +01:00
add headings to emphasize the steps in the procedure
Signed-off-by: Ken Bingham <kenneth.bingham@netfoundry.io>
This commit is contained in:
parent
addd415632
commit
a9c056ca8d
@ -74,7 +74,7 @@ To work with a self-hosted `zrok` deployment, you'll need to set the `ZROK_API_E
|
||||
In my case, I've set:
|
||||
|
||||
```bash
|
||||
$ export ZROK_API_ENDPOINT=http://localhost:18080
|
||||
export ZROK_API_ENDPOINT=http://localhost:18080
|
||||
```
|
||||
|
||||
## Bootstrap OpenZiti for zrok
|
||||
@ -120,6 +120,8 @@ Notice this warning:
|
||||
[ 0.120] WARNING zrok/controller.Bootstrap: missing public frontend for ziti id 'sqJRAINSiB'; please use 'zrok admin create frontend sqJRAINSiB public https://{token}.your.dns.name' to create a frontend instance
|
||||
```
|
||||
|
||||
## Run zrok Controller
|
||||
|
||||
The `zrok` bootstrap process wants us to create a "public frontend" for our service. `zrok` uses public frontends to allow users to specify where they would like public traffic to ingress from.
|
||||
|
||||
The `zrok admin create frontend` command requires a running `zrok` controller, so let's start that up first:
|
||||
@ -140,6 +142,8 @@ $ zrok controller etc/ctrl.yml
|
||||
[ 0.085] INFO zrok/controller.(*metricsAgent).listen: started
|
||||
```
|
||||
|
||||
## Create zrok Frontend
|
||||
|
||||
With our `ZROK_ADMIN_TOKEN` and `ZROK_API_ENDPOINT` environment variables set, we can create our public frontend like this:
|
||||
|
||||
```bash
|
||||
@ -147,7 +151,19 @@ $ zrok admin create frontend sqJRAINSiB public http://{token}.zrok.quigley.com:8
|
||||
[ 0.037] INFO main.(*adminCreateFrontendCommand).run: created global public frontend 'WEirJNHVlcW9'
|
||||
```
|
||||
|
||||
Now our `zrok` controller is fully configured.
|
||||
The id of the frontend was emitted earlier in by the zrok controller when we ran the bootstrap command. If you don't have that log message the you can find the id again with the `ziti` CLI like this:
|
||||
|
||||
```bash
|
||||
# initialize the Ziti quickstart env
|
||||
source ~/.ziti/quickstart/$(hostname -s)/$(hostname -s).env
|
||||
# login as admin
|
||||
zitiLogin
|
||||
# ziti edge list identities
|
||||
```
|
||||
|
||||
The id is shown for the "frontend" identity.
|
||||
|
||||
Nice work! The `zrok` controller is fully configured now that you have created the zrok frontend.
|
||||
|
||||
## Configure the Public Frontend
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user