diff --git a/helm/core/templates/controller-deployment.yaml b/helm/core/templates/controller-deployment.yaml index d39f13376..26ba19598 100644 --- a/helm/core/templates/controller-deployment.yaml +++ b/helm/core/templates/controller-deployment.yaml @@ -78,6 +78,10 @@ spec: value: "{{ .Values.global.enableGatewayAPI }}" - name: PILOT_ENABLE_ALPHA_GATEWAY_API value: "{{ .Values.global.enableGatewayAPI }}" + {{- if .Values.global.enableInferenceExtension }} + - name: ENABLE_GATEWAY_API_INFERENCE_EXTENSION + value: "true" + {{- end }} {{- if .Values.controller.env }} {{- range $key, $val := .Values.controller.env }} - name: {{ $key }} @@ -174,7 +178,15 @@ spec: - name: HOST_RDS_MERGE_SUBSET value: "{{ .Values.global.hostRDSMergeSubset }}" - name: PILOT_FILTER_GATEWAY_CLUSTER_CONFIG + {{- if .Values.global.enableInferenceExtension }} + value: "false" + {{- else }} value: "{{ .Values.global.onlyPushRouteCluster }}" + {{- end }} + {{- if .Values.global.enableInferenceExtension }} + - name: ENABLE_GATEWAY_API_INFERENCE_EXTENSION + value: "true" + {{- end }} - name: HIGRESS_CONTROLLER_SVC value: "127.0.0.1" - name: HIGRESS_CONTROLLER_PORT diff --git a/helm/core/values.yaml b/helm/core/values.yaml index 034026714..7d4821135 100644 --- a/helm/core/values.yaml +++ b/helm/core/values.yaml @@ -45,6 +45,8 @@ global: enableIstioAPI: true # -- If true, Higress Controller will monitor Gateway API resources as well enableGatewayAPI: true + # -- If true, enable Gateway API Inference Extension support + enableInferenceExtension: false # -- Used to locate istiod. istioNamespace: istio-system # -- enable pod disruption budget for the control plane, which is used to diff --git a/helm/higress/README.md b/helm/higress/README.md index 33100e10e..620365575 100644 --- a/helm/higress/README.md +++ b/helm/higress/README.md @@ -163,6 +163,7 @@ The command removes all the Kubernetes components associated with the chart and | global.enableGatewayAPI | bool | `true` | If true, Higress Controller will monitor Gateway API resources as well | | global.enableH3 | bool | `false` | | | global.enableIPv6 | bool | `false` | | +| global.enableInferenceExtension | bool | `false` | If true, enable Gateway API Inference Extension support | | global.enableIstioAPI | bool | `true` | If true, Higress Controller will monitor istio resources as well | | global.enableLDSCache | bool | `false` | | | global.enablePluginServer | bool | `false` | | diff --git a/helm/higress/README.zh.md b/helm/higress/README.zh.md index e925cefa9..4c9ceca71 100644 --- a/helm/higress/README.zh.md +++ b/helm/higress/README.zh.md @@ -145,6 +145,7 @@ helm delete higress -n higress-system | gateway.service.ports[1].targetPort | int | `443` | 靶向端口 | | gateway.service.type | string | `"LoadBalancer"` | 服务类型 | | global.disableAlpnH2 | bool | `false` | 设置是否禁用 ALPN 中的 http/2 | +| global.enableInferenceExtension | bool | `false` | 是否启用 Gateway API Inference Extension 支持 | | ... | ... | ... | ... | 由于内容较多,其他参数可以参考完整表。