Size: a a a

2021 May 29

M

Manish in Istio_ru
this is my service

---
apiVersion: v1
kind: Service
metadata:
 labels:
   app: nlp-topic
   version: v1
 name: nlp-topic
spec:
 #clusterIP: None
 ports:
 - name: grpc
   port: 10443
   protocol: TCP
   targetPort: 50051
 selector:
   app: nlp-topic
 sessionAffinity: None
 type: ClusterIP
status:
 loadBalancer: {}
---
источник

4

4c74356b41 in Istio_ru
80?
источник

4

4c74356b41 in Istio_ru
10443
источник

M

Manish in Istio_ru
i also deployed ingress controller and it has port 80 exposed
источник

4

4c74356b41 in Istio_ru
wut? you are targeting the service you pasted. it listens on 10443, not 80
источник

M

Manish in Istio_ru
noted boss.
let me do it as you suggested asap.
источник

M

Manish in Istio_ru
this is the new config I just tested on, but it still failed

---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
 name: route-nlp-topic
spec:
 hosts:
 - "*"
 gateways:
 - istio-system/gateway-nlp-topic
 http:
   - match:
       - port: 10443
     route:
       - destination:
           host: nlp-topic
           subset: v1
         weight: 100
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
 name: destination-nlp-topic
spec:
 host: nlp-topic
 trafficPolicy:
   loadBalancer:
     simple: ROUND_ROBIN
 subsets:
 - name: v1
   labels:
     app: nlp-topic
     version: v1
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
 name: gateway-nlp-topic
 namespace: istio-system
spec:
 selector:
   istio: ingressgateway
 servers:
 - port:
     number: 80
     name: grpc
     protocol: GRPC
   hosts:
   - "*"
источник

4

4c74356b41 in Istio_ru
- match:
 - port: 80
источник

4

4c74356b41 in Istio_ru
gateway port, not service port
источник

4

4c74356b41 in Istio_ru
but tbh i'm not sure, you are making the config more complicated, not less
источник

4

4c74356b41 in Istio_ru
when nothing works, lol
источник

4

4c74356b41 in Istio_ru
no idea why
источник

ᴅⁱᵐⁱᴅʳ0ˡ in Istio_ru
Grpc not work 80
источник

4

4c74356b41 in Istio_ru
take the simplest possible example: 1 gateway, 1 vs, 1 service, 1 deployment. plenty of examples online. make it work, then add destination rules, weights, etc
источник

M

Manish in Istio_ru
I follwed the steps of installation of ingress, istiod as mentioned in the official site of istio.
источник

M

Manish in Istio_ru
I did not find proper examples on GRPC 🙁
источник

M

Manish in Istio_ru
which port should I use?
источник

4

4c74356b41 in Istio_ru
источник

4

4c74356b41 in Istio_ru
источник

ᴅⁱᵐⁱᴅʳ0ˡ in Istio_ru
View you svc istio-ingress
источник