fabric-samples/full-stack-asset-transfer-guide/docs/CloudReady/10-kube-zh.md
2023-01-18 09:13:54 -05:00

67 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 部署一个k8s集群
[上一步: 设置](00-setup-zh.md) <==> [下一步: 部署一个fabric网络](20-fabric-zh.md)
---
Fabric云原生部署所有的组件直接在工作站上运行在这个步骤中您将会配置
- 一个本地[kind](https://kind.sigs.k8s.io) 集群来运行k8s.
- 一个本地[Ingress controller](https://github.com/kubernetes/ingress-nginx), 将k8s集群的路由设置到 `*.localho.st` 这个虚拟域名上.
- 一个本地[Container Registry](https://docs.docker.com/registry/insecure/), 允许您上传智能合约的docker镜像。
![Local KIND](../images/CloudReady/10-kube.png)
## 执行:
```shell
just check-setup
```
## Kubernetes IN Docker (KIND)
- 配置 `localho.st` DNS路由
mapping `*.localho.st` to 127.0.0.1.
```shell
export WORKSHOP_INGRESS_DOMAIN=localho.st
export WORKSHOP_NAMESPACE=test-network
```
- 创建[kind](https://kind.sigs.k8s.io) 集群, Nginx ingress, 和本地 container registry:
```shell
just kind
```
- 在新的terminal中执行如下命令来确认:
```shell
# KIND will set the current kubectl context in ~/.kube/config
kubectl cluster-info
k9s -n test-network
```
## 调试
- Run KIND on a [multipass VM](11-kube-multipass.md) on your local system
- Run KIND on an [EC2 instance](12-kube-ec2-vm.md) at AWS
## 进一步拓展:
- Run the workshop on an [IKS or EKS or DOKS Cloud Kubernetes cluster](13-kube-public-cloud.md).
- Run the workshop on an AWS VM, using your AWS account and an EC2 [#cloud-config](../../infrastructure/ec2-cloud-config.yaml).
---
[上一步: 设置](00-setup-zh.md) <==> [下一步: 部署一个fabric网络](20-fabric-zh.md)