From d55be1cd6fa0f3ea36a4ee57d51535e0ecb57d29 Mon Sep 17 00:00:00 2001 From: Xin Li Date: Tue, 20 Jul 2021 18:14:02 +0800 Subject: [PATCH] Update deploy broker step --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index df14889..26b40d1 100644 --- a/README.md +++ b/README.md @@ -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