Hi all,
Decided to upgrade to Istio 1.6 yesterday on a GKE cluster, and attempt to get HTTPS via managed certificate while using Istio Gateways.
I have been trying to implement this for the last 24 hours, but am unable to achieve any progress achieving it.
service:
apiVersion: v1 kind: Service metadata: name: monolith-backend-v1 namespace: monolith labels: app: monolith-backend service: monolith-backend version: v1 spec: ports: - port: 8080 name: http selector: app: monolith-backend version: v1
virtualservice:
apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: monolith-backend namespace: monolith spec: hosts: - "*" gateways: - istio-system/api-gateway http: - match: - uri: prefix: /managed - uri: prefix: /callbacks - uri: prefix: /legacy route: - destination: host: monolith-backend-v1 port: number: 8080
ingress:
apiVersion: extensions/v1beta1 kind: Ingress metadata: name: istio-ingress namespace: istio-system annotations: kubernetes.io/ingress.global-static-ip-name: gke-ip-address networking.gke.io/managed-certificates: managed-certificate spec: rules: - host: 'xxxxxxxxx.com' http: paths: - paths: backend: serviceName: istio-ingressgateway servicePort: 80
gateway:
apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: api-gateway namespace: istio-system annotations: networking.gke.io/managed-certificates: production-certificate kubernetes.io/ingress.global-static-ip-name: gke-ip-address spec: selector: istio: ingressgateway servers: - port: number: 80 name: http protocol: HTTP hosts: - "*" tls: httpsRedirect: true - port: number: 443 name: https protocol: HTTPS hosts: - "*" tls: mode: SIMPLE serverCertificate: /etc/istio/managed-certificate/tls.crt privateKey: /etc/istio/managed-certificate/tls.key
I have patched the istio-ingress service with this:
[ { "op": "add", "path": "/metadata/annotations/cloud.google.com~1neg", "value": "{\"ingress\": true}" }, { "op": "replace", "path": "/spec/type", "value": "NodePort" }, { "op": "remove", "path": "/status" } ]
istioctl analyze is verified
istioctl proxy-status shows everything as ready
connecting to the loadbalancer url results in a 502
Any help on how to proceed debugging / solve this?