From a02320e1cc00442a75be76e75634de4cf161226b Mon Sep 17 00:00:00 2001 From: Josh Kneubuhl Date: Tue, 3 May 2022 11:04:21 -0400 Subject: [PATCH] Move the DNS quickstart section into the prereqs Signed-off-by: Josh Kneubuhl --- test-network-k8s/README.md | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/test-network-k8s/README.md b/test-network-k8s/README.md index 130985d5..98f944b1 100644 --- a/test-network-k8s/README.md +++ b/test-network-k8s/README.md @@ -22,7 +22,20 @@ _Fabric, Ahoy!_ - K8s: [kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation) or [Rancher / k3s](https://rancherdesktop.io) - [jq](https://stedolan.github.io/jq/) - [envsubst](https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html) (`brew install gettext` on OSX) - +- DNS domain alias: Fabric services are exposed by Kubernetes Ingress at the fictitious DNS domain `*.local.fabric`. Add the + following aliases to your /etc/hosts file: +``` +127.0.0.1 org0-ca.local.fabric +127.0.0.1 org1-ca.local.fabric +127.0.0.1 org2-ca.local.fabric +127.0.0.1 org0-orderer1.local.fabric +127.0.0.1 org0-orderer2.local.fabric +127.0.0.1 org0-orderer3.local.fabric +127.0.0.1 org1-peer1.local.fabric +127.0.0.1 org1-peer2.local.fabric +127.0.0.1 org2-peer1.local.fabric +127.0.0.1 org2-peer2.local.fabric +``` ## Quickstart @@ -37,21 +50,6 @@ export TEST_NETWORK_CLUSTER_RUNTIME=k3s ./network cluster-init ``` -Fabric services are exposed by Kubernetes Ingress at the fictitious DNS domain `*.local.fabric`. Add the -following aliases to your /etc/hosts file: -``` -127.0.0.1 org0-ca.local.fabric -127.0.0.1 org1-ca.local.fabric -127.0.0.1 org2-ca.local.fabric -127.0.0.1 org0-orderer1.local.fabric -127.0.0.1 org0-orderer2.local.fabric -127.0.0.1 org0-orderer3.local.fabric -127.0.0.1 org1-peer1.local.fabric -127.0.0.1 org1-peer2.local.fabric -127.0.0.1 org2-peer1.local.fabric -127.0.0.1 org2-peer2.local.fabric -``` - Launch the network, create a channel, and deploy the [basic-asset-transfer](../asset-transfer-basic) smart contract: ```shell ./network up