共计 1415 个字符,预计需要花费 4 分钟才能阅读完成。
### 当前版本信息
* helm 版本:2.13.0
* apisix 版本: 3.15.0
* kubernetes 版本: 1.33.0
### 安装要求
Before installing APISIX ingress controller, ensure you have:
#### 1.A working Kubernetes cluster (version 1.26+)
* **Production**: TKE, EKS, AKS, or other cloud-managed clusters
* **Development**: minikube, kind, or k3s
Kubernetes 1.26+ is required because the controller uses CEL (Common Expression Language) validation rules in CRDs, IngressClass Namespaced Params support, and EndpointSlice terminating conditions.
#### 2.kubectl installed and configured to access your cluster
#### 3.Helm (version 3.8+) installed
### 添加 repo 源
helm repo add apisix https://apache.github.io/apisix-helm-chart
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
### 安装 Install APISIX and APISIX Ingress Controller
#### 1. 下载及解压安装包
helm pull apisix/apisix –version=2.13.0
tar -zxvf apisix-2.13.0.tgz
cd apisix
#### 2. 修改 values.yaml
* 开启 ssl
“`yaml
apisix:
ssl:
enabled: true
“`
* 开启 ingress-controller
“`yaml
ingress-controller:
enabled: true
“`
* 修改 etcd
由于是单节点部署, 这里修改 replicaCount: 1, 正常高可用部署,pod 落在不同节点上
“`yaml
etcd:
replicaCount: 1
“`
#### 3. 修改 ingress-controller
修改文件: vim charts/apisix-ingress-controller/values.yaml
* 修改 namespace
“`yaml
apisix:
adminService:
namespace: ingress-apisix
“`
* 修改 gatewayProxy
“`yaml
gatewayProxy:
createDefault: true
“`
#### 4. 修改 etcd 的 storageClass
修改文件: vim charts/etcd/values.yaml
* 修改 defaultStorageClass
“`yaml
global:
defaultStorageClass: “local”
“`
#### 5. 安装
修改文件: vim charts/etcd/values.yaml
“`shell
helm install apisix –namespace ingress-apisix –create-namespace .
“`