I have question about the tls configuration in the api gateway , i want to access a service in cluster
so i want to do https between client and the api gateway and http between the api gateway and in my project i have already certificate , so i used them to generate a secret and assign it to the api gateway, and create http route to the service and add it to the api gateway, but when i try to access it from my browser with https it doesnt work, i will provide the config files for the api gateway
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
metadata:
name: tls-gateway
spec:
gatewayClassName: cilium
listeners:
- name: https-1
protocol: HTTPS
port: 443
hostname: “bookinfo.cilium.rocks”
tls:
certificateRefs:- kind: Secret
name: demo-cert
- kind: Secret
- name: https-2
protocol: HTTPS
port: 443
hostname: “hipstershop.cilium.rocks”
tls:
certificateRefs:- kind: Secret
name: demo-cert
- kind: Secret
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: https-app-route-1
spec:
parentRefs:
- name: tls-gateway
hostnames: - “bookinfo.cilium.rocks”
rules: - matches:
- path:
type: PathPrefix
value: /details
backendRefs: - name: details
port: 9080
i dont know where i were may be wrong ??!
- path: