# Install DCE Community on macOS computers via Docker and kind This page explains how to create a single-node kind cluster using a macOS laptop, and then install DCE Community online. !!! tip This is a simplified installation experience step for beginners, macOS is rarely used in actual production, The original author is [panpan0000](https://github.com/panpan0000). ## Hardware environment Confirm that the performance and resources of the MacBook meet the requirements. The minimum configuration is: - CPU: **8 cores** - Memory: **16G** - Free disk space: more than 20G ## Install and tune Docker Depending on your MacBook's chip (Intel or M1), install [Docker Desktop](https://docs.docker.com/desktop/install/mac-install/). Adjust the upper limit of container resources: 1. Start Docker. 1. Click ⚙️ in the upper right corner to open the __Settings__ page. 1. Click __Resources__ on the left, adjust the resource limit of the startup container to 8C14G, and click the __Apply & Restart__ button. ![Adjust resources](https://docs.daocloud.io/daocloud-docs-images/docs/blogs/images/docker.png) ## install kind According to the actual computer situation, choose one of the following to install kind. If you encounter other problems, please refer to [kind official installation instructions](https://kind.sigs.k8s.io/docs/user/quick-start/#installation). === "Mac is an Intel chip" ```shell [ $(uname -m) = x86_64 ]&& curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.17.0/kind-darwin-amd64 ``` === "Mac is an M1/ARM chip" ```shell [ $(uname -m) = arm64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.17.0/kind-darwin-arm64 chmod +x ./kind sudo mv kind /usr/local/bin/kind ``` === "Install kind via Homebrew" Install Homebrew: ``` /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` install kind ```shell brew install kind ``` Finally, run the following command to confirm that kind is successfully installed: ```shell kind version ``` ## Create kind configuration file Expose port 32088 in the cluster to port 8888 external to kind (can be modified by yourself): ```shell cat > kind_cluster.yaml << EOF apiVersion: kind.x-k8s.io/v1alpha4 kind: Cluster nodes: - role: control-plane extraPortMappings: - containerPort: 32088 hostPort: 8888 EOF ``` ## kind Create a K8s cluster Taking K8s version 1.25.3 as an example, run the following command to create a K8s cluster: ```shell kind create cluster --image docker.m.daocloud.io/kindest/node:v1.25.3 --name=fire-kind-cluster --config=kind_cluster.yaml ``` Confirm that the kind cluster is successfully created: ```shell docker exec -it fire-kind-cluster-control-plane kubectl get no ``` Expected output: ```console NAME STATUS ROLES AGE VERSION fire-kind-cluster-control-plane Ready control-plane 18h v1.25.3 ``` ## Install DCE Community 1. Install dependencies ```shell cat <