无法在网关上设置 mTLS。如果我设置网关mode: MUTUAL
然后istio-ingressgateway
输出
Failed to load trusted CA certificates from <inline>
。我正在使用Cloudflare origin pull CA cert。mode: SIMPLE
秘密工作如预期。
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
generatorOptions:
disableNameSuffixHash: true
secretGenerator:
- name: mysite.com-cer
namespace: istio-system
type: kubernetes.io/tls
files:
- tls.key=certs/mysite.com.key
- tls.crt=certs/mysite.com.cer
- ca.crt=certs/cloudflare-ca.crt
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: gw
spec:
servers:
- hosts:
- 'mysite.com'
- '*.mysite.com'
port:
number: 1443
name: https
protocol: HTTPS
tls:
mode: MUTUAL
credentialName: mysite.com-cer
Istio 1.12.1