Skip to main content

istio

This document installs istio based on Kubernetes v1.25.4 version.

Before deployment, you can read through some points to note for istio.

Environmental Parameter Adjustment

Each node in the Kubernetes cluster needs to perform these operations.

sysctl -w fs.inotify.max_user_watches=10485760
sysctl -w fs.inotify.max_user_instances=10240

cat >> /etc/sysctl.conf <<EOF
fs.inotify.max_user_watches=10485760
fs.inotify.max_user_instances=10240
EOF

Importing Images

Each node in the Kubernetes cluster needs to perform these operations.

crictl pull registry.cn-hangzhou.aliyuncs.com/mdpublic/proxyv2:1.18.0
crictl pull registry.cn-hangzhou.aliyuncs.com/mdpublic/pilot:1.18.0

Deploying istio

Operate only on the first Master node of Kubernetes.

  1. Download istio installation package.

    wget https://pdpublic.mingdao.com/private-deployment/offline/common/istio-1.18.0-linux-amd64.tar.gz
  2. Extract to installation directory.

    tar -zxvf istio-1.18.0-linux-amd64.tar.gz
    mv istio-1.18.0/ /usr/local/istio
  3. Configure environment variables.

    cat >> ~/.bashrc <<\EOF
    export PATH=/usr/local/istio/bin/:$PATH
    EOF
    source ~/.bashrc
  4. Verify istio command to check the version.

    istioctl version
  5. Install istio in the k8s cluster.

    istioctl install --set profile=default -y --set values.global.hub=registry.cn-hangzhou.aliyuncs.com/mdpublic
  6. Enable namespace automatic injection.

    kubectl label namespace default istio-injection=enabled --overwrite