如何配置由 istio operator 管理的入口网关 TLS(使用 kind:IstioOperator)。我没有看到包含的普通网关规格。
文档中的示例:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
profile: default
hub: gcr.io/istio-testing
tag: latest
revision: 1-8-0
meshConfig:
accessLogFile: /dev/stdout
enableTracing: true
components:
egressGateways:
- name: istio-egressgateway
enabled: true
https://istio.io/latest/docs/reference/config/istio.operator.v1alpha1/#GatewaySpec
答案 0 :(得分:2)
要获得网关部署的 tls 设置,您需要创建自己的网关对象(不是入口网关,只是网关),您可能需要这样: https://istio.io/latest/docs/tasks/traffic-management/ingress/secure-ingress/#configure-a-tls-ingress-gateway-for-a-single-host
要操作运营商的入口网关,您可以使用入口网关下的 k8s
字段
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
profile: default
hub: gcr.io/istio-testing
tag: latest
revision: 1-8-0
meshConfig:
accessLogFile: /dev/stdout
enableTracing: true
components:
egressGateways:
- name: istio-egressgateway
enabled: true
ingressGateways:
- name: istio-ingressgateway
enabled: true
namespace: istio-system
k8s:
<field: value>
https://istio.io/latest/docs/reference/config/istio.operator.v1alpha1/#GatewaySpec
https://istio.io/latest/docs/reference/config/istio.operator.v1alpha1/#KubernetesResourcesSpec