istio: gateway: 0.8 httpbin sample task docs are not working with v1alpha3 https

I followed the gateway docs including setup tasks, and I get a 404 on http and a connection refused on https.

k8s: 1.9 in IBM Cloud istio version: istio-0.8.0-pre20180421-09-15

replication steps:

kubectl create ns istio-system

helm template --namespace=istio-system --set sidecar-injector.enabled=true install/kubernetes/helm/istio > sidecarinject.yaml

kubectl create -f sidecarinject.yaml

kubectl label namespace default istio-injection=enabled

kubectl create -f samples/httpbin/httpbin.yaml

 openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /tmp/tls.key -out /tmp/tls.crt -subj "/CN=foo.bar.com"

cat <<EOF | kubectl create -f -
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: httpbin-gateway
spec:
  servers:
  - port:
      number: 80
      name: http
  - port:
      number: 443
      name: https
    tls:
      mode: SIMPLE
      serverCertificate: /tmp/tls.crt
      privateKey: /tmp/tls.key
EOF

cat <<EOF | kubectl create -f -
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: httpbin
spec:
  hosts:
  - httpbin
  gateways:
  - httpbin-gateway
  http:
  - match:
      uri:
        prefix: /status
    route:
    - destination:
        port:
          number: 8000
        name: httpbin
  - match:
      uri:
        prefix: /delay
    route:
    - destination:
        port:
          number: 8000
        name: httpbin
EOF
istio-ingress              LoadBalancer   172.21.131.219   169.X.X.X   80:30999/TCP,443:30823/TCP      
curl -I http://169.X.X.X:30999/status/200
HTTP/1.1 404 Not Found
date: Fri, 04 May 2018 17:30:55 GMT
server: envoy
content-length: 0
curl -I -k https://169.X.X.X:30823/status/200
curl: (7) Failed to connect to 169.X.X.X port 30823: Connection refused

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 22 (21 by maintainers)

Most upvoted comments

@cmluciano Please wait until my PR is merged.

@frankbu you are right, I am working on that part too. (cc @ZhiminXiang @cmluciano )