I would like my VirtualService to redirect to an HTTPS "Service". For this, I used a DestinationRule specifying a trafficPolicy and the caCertificates. The CA has been successfully placed in the Envoy proxy, which I have manually verified. However, I still encounter this error:
upstream connect error or disconnect/reset before headers. retried and the latest reset reason: connection failure, transport failure reason: TLS error: Secret is not supplied by SDS
My .yaml files:
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: jhipster-registry-gw-virtualservice
namespace: int
spec:
gateways:
- istio-system/martin-gateway
hosts:
- jhipster-registry.myDomain.be
http:
- route:
- destination:
host: jhipster-registry
port:
number: 8761
---
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: jhipster-registry-destinationrule
namespace: int
spec:
host: jhipster-registry
trafficPolicy:
tls:
mode: SIMPLE
caCertificates: /etc/jhipster-registry-certs/REGISTRY.crt
infos: I can Curl with cacert jhipster-registry with ip in hosts file
thx
infos: I can Curl with cacert jhipster-registry with ip in hosts file