LOADING

加载过慢请开启缓存 浏览器默认开启

Kmesh 环境配置

  • 下载 openEuler 23.03

  • 安装 kernel headers:

    yum install kernel-headers
    
  • 安装 docker:

    参考:https://cloud.tencent.com/developer/article/2383890

    curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
    sed -i 's#https://download.docker.com#https://mirrors.tuna.tsinghua.edu.cn/docker-ce#' /etc/yum.repos.d/docker-ce.repo
    sed -i 's#$releasever#7#g' /etc/yum.repos.d/docker-ce.repo
    yum install docker-ce-24.0.7
    
  • 修改 docker proxy:

    修改 /etc/docker/daemon.json 为如下格式:

    {
        "proxies": {
            "http-proxy": "http://ip:7890",
            "https-proxy": "http://ip:7890",
            "no-proxy": "127.0.0.1,localhost"
        }
    }
    

    重启 docker:

    systemctl restart docker
    systemctl status docker
    
  • 安装 kind

    wget https://github.com/kubernetes-sigs/kind/releases/download/v0.23.0/kind-linux-amd64
    chmod +x kind-linux-amd64
    mv kind-linux-amd64 /usr/bin/kind
    
  • 安装 istioctl

    curl -L https://istio.io/downloadIstio | sh -
    cd istio-1.22.2/bin
    chmod +x istioctl
    mv istioctl /usr/bin/
    
  • 创建 ambient 模式集群

    kind create cluster --image=kindest/node:v1.23.17 --config=- <<EOF
    kind: Cluster
    apiVersion: kind.x-k8s.io/v1alpha4
    name: ambient
    nodes:
    - role: control-plane
    - role: worker
    - role: worker
    EOF
    
    istioctl install --set profile=ambient --skip-confirmation
    
  • 安装 go

    https://golang.google.cn/doc/install

  • 安装 kubectl

    https://kubernetes.io/zh-cn/docs/tasks/tools/install-kubectl-linux/

  • 安装 kmesh

    参考 https://kmesh.net/en/docs/setup/quickstart/ 即可。

参考: