Skip to content

Commit

Permalink
Update deploy broker step
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielXLee committed Jul 20, 2021
1 parent af9e074 commit d55be1c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,24 @@ The setup can be done by using `kustomize`.
make deploy
```

- Deploy broker on `cluster-a`
- Setup `publicAPIServerURL`

Add `publicAPIServerURL` in `./config/samples/deploy_broker.yaml`, `https://xxx.xxx.xxx.xxx:pppp` must be a public apiserver address, this address should be access by joined cluster.
Find the public apiserver URL with command: `kubectl config view | grep server | cut -f 2- -d ":" | tr -d " "`

```yaml
apiVersion: operator.tkestack.io/v1alpha1
kind: Knitnet
metadata:
name: deploy-broker-sample
spec:
brokerConfig:
publicAPIServerURL: https://xxx.xxx.xxx.xxx:pppp
# defaultGlobalnetClusterSize: 65336
serviceDiscoveryEnabled: true
```

Add `publicAPIServerURL` in `./config/samples/deploy_broker.yaml`, find the public apiserver URL with command: `kubectl config view | grep server | cut -f 2- -d ":" | tr -d " "`
- Deploy broker on `cluster-a`

```shell
kubectl -n knitnet-operator-system apply -f ./config/samples/deploy_broker.yaml
Expand Down

0 comments on commit d55be1c

Please sign in to comment.