mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 17:45:10 +00:00
Move the DNS quickstart section into the prereqs
Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
parent
49fa452864
commit
a02320e1cc
1 changed files with 14 additions and 16 deletions
|
|
@ -22,22 +22,7 @@ _Fabric, Ahoy!_
|
||||||
- K8s: [kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation) or [Rancher / k3s](https://rancherdesktop.io)
|
- K8s: [kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation) or [Rancher / k3s](https://rancherdesktop.io)
|
||||||
- [jq](https://stedolan.github.io/jq/)
|
- [jq](https://stedolan.github.io/jq/)
|
||||||
- [envsubst](https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html) (`brew install gettext` on OSX)
|
- [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
|
||||||
|
|
||||||
## Quickstart
|
|
||||||
|
|
||||||
Create a KIND Kubernetes:
|
|
||||||
```shell
|
|
||||||
./network kind
|
|
||||||
```
|
|
||||||
For environments running [Rancher k3s](docs/KUBERNETES.md#rancher-desktop-and-k3s):
|
|
||||||
```shell
|
|
||||||
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:
|
following aliases to your /etc/hosts file:
|
||||||
```
|
```
|
||||||
127.0.0.1 org0-ca.local.fabric
|
127.0.0.1 org0-ca.local.fabric
|
||||||
|
|
@ -52,6 +37,19 @@ following aliases to your /etc/hosts file:
|
||||||
127.0.0.1 org2-peer2.local.fabric
|
127.0.0.1 org2-peer2.local.fabric
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Quickstart
|
||||||
|
|
||||||
|
Create a KIND Kubernetes:
|
||||||
|
```shell
|
||||||
|
./network kind
|
||||||
|
```
|
||||||
|
For environments running [Rancher k3s](docs/KUBERNETES.md#rancher-desktop-and-k3s):
|
||||||
|
```shell
|
||||||
|
export TEST_NETWORK_CLUSTER_RUNTIME=k3s
|
||||||
|
|
||||||
|
./network cluster-init
|
||||||
|
```
|
||||||
|
|
||||||
Launch the network, create a channel, and deploy the [basic-asset-transfer](../asset-transfer-basic) smart contract:
|
Launch the network, create a channel, and deploy the [basic-asset-transfer](../asset-transfer-basic) smart contract:
|
||||||
```shell
|
```shell
|
||||||
./network up
|
./network up
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue