istio: istio 0.8 ingress doesn't have listen port
I have a bare-metal installation of kubernetes + istio 0.8 Also I have a NodePort service to Istio Ingress deployment
istio-system istio-ingress-nodeport NodePort 10.233.37.227 <none> 80:32664/TCP
Name: istio-ingress-nodeport
Namespace: istio-system
Labels: app=ingress
chart=ingress-0.8.0
heritage=Tiller
istio=ingress
release=istio
Annotations: <none>
Selector: istio=ingress
Type: NodePort
IP: 10.233.37.227
Port: <unset> 80/TCP
TargetPort: 80/TCP
NodePort: <unset> 32664/TCP
Endpoints: 10.233.102.154:80
Session Affinity: None
External Traffic Policy: Cluster
Events: <none>
Istio Ingress deployment exposes port 80
ame: istio-ingress
Namespace: istio-system
CreationTimestamp: Sat, 19 May 2018 20:44:15 +0300
Labels: app=ingress
chart=ingress-0.8.0
heritage=Tiller
istio=ingress
release=istio
Annotations: deployment.kubernetes.io/revision=1
Selector: istio=ingress
Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 1 max unavailable, 1 max surge
Pod Template:
Labels: istio=ingress
Annotations: sidecar.istio.io/inject=false
Service Account: istio-ingress-service-account
Containers:
ingress:
Image: docker.io/istionightly/proxyv2:nightly-release-0.8
Ports: 80/TCP, 443/TCP
but if I go to istio ingress pod I won’t see any 80 port has beed exposed
$ kubectl exec -it istio-ingress-6c6b94f8f6-56jgp -n istio-system /bin/bash
root@istio-ingress-6c6b94f8f6-56jgp:/# netstat -nap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:15000 0.0.0.0:* LISTEN -
tcp 0 0 10.233.102.154:47322 10.233.30.168:15010 ESTABLISHED -
udp 0 0 10.233.102.154:52451 10.233.7.196:9125 ESTABLISHED -
udp 0 0 10.233.102.154:54821 10.233.7.196:9125 ESTABLISHED -
udp 0 0 10.233.102.154:56897 10.233.7.196:9125 ESTABLISHED -
udp 0 0 10.233.102.154:43760 10.233.0.3:53 ESTABLISHED -
udp 0 0 10.233.102.154:44816 10.233.7.196:9125 ESTABLISHED -
udp 0 0 10.233.102.154:33600 10.233.7.196:9125 ESTABLISHED -
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ] DGRAM 146911 - @envoy_domain_socket_0
root@istio-ingress-6c6b94f8f6-56jgp:/#
Why can it be? How can I solve that? I suppose it’s the reason I can’t connect to service from outside the cluster
curl -v http://10.21.3.184:32664/health-check
* Trying 10.21.3.184...
* TCP_NODELAY set
* Connection failed
* connect to 10.21.3.184 port 32664 failed: Connection refused
* Failed to connect to 10.21.3.184 port 32664: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 10.21.3.184 port 32664: Connection refused
and from inside the cluster
root@istio-pilot-79fbf89bf7-l7pfg:/# curl -v http://10.233.102.154/
* Trying 10.233.102.154...
* connect to 10.233.102.154 port 80 failed: Connection refused
* Failed to connect to 10.233.102.154 port 80: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 10.233.102.154 port 80: Connection refused
root@istio-pilot-79fbf89bf7-l7pfg:/# curl -v http://10.233.102.154/
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 35 (20 by maintainers)
Same problem in release 0.8.0 LTS.
Istio status
version
services
pods
– The AGE is 3d, because i modified the system’s time –
Bookinfo Sample Application test
I deployed bookinfo app followed by Bookinfo Sample Application
Deploy
I created servcies and pods using
samples/bookinfo/kube/bookinfo.yaml
services:
pods:
Create ingress
I created ingress using to command on top of the page:
bookinfo-gateway.yaml’s content:
ingress
Confirm
Then confirm that the Bookinfo application is running:
curl
telnet
Status of istio-ingressgateway pod
Then I created an istio gateway, 80 port opened:
Create a gateway
Follow by Configuring a gateway for HTTP
Check ports in istio-ingressgateway pod
Is gateway mandatory in 0.8.0 ?