istio: I can't see my service and deployment in istio jaeger dependency graph
Describe the bug
Expected behavior {{ What did you expect to happen? }}
Steps to reproduce the bug {{ Minimal steps to reproduce the behavior }}
Version
{{ What version of Istio and Kubernetes are you using? Use istioctl version
and kubectl version
}}
Installation {{ Please describe how Istio was installed }} apiVersion: extensions/v1beta1 kind: Deployment metadata: name: smsoffer-test namespace: default spec: replicas: 1 template: metadata: labels: app: smsoffer-test spec: containers: - name: smsoffer-test-container image: pgnaleen/microservicesapps:smsoffer-test imagePullPolicy: Always ports: - containerPort: 8823 # volumeMounts: # - mountPath: /logs/ # name: log-volume # - mountPath: /etc/configs/ # name: configs env: - name: MESSAGE value: “hello world” command: [“/bin/echo”] args: [“$(MESSAGE)”] command: [“/bin/sh”]
args: [“-l”, “-c”, " tail -f /dev/null"]
args: ["-l", "-c", "java -jar /root/localSMSOffer-1.0.0.jar"]
# volumes:
# - name: log-volume
# hostPath:
# directory location on host
# path: /home/k8s_istio_platform/logs/
# - name: configs
# hostPath:
# directory location on host
# path: /home/k8s_istio_platform/configs/
kind: Service apiVersion: v1 metadata: name: smsoffer-test namespace: default spec: selector: app: smsoffer-test ports:
- protocol: TCP port: 8080 targetPort: 8080
clusterIP: 10.0.171.239
loadBalancerIP: 172.26.76.122
externalIPs:
- 172.26.76.122
type: LoadBalancer
gatewayfile apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: sms-test-gateway spec: selector: istio: ingressgateway # use istio default controller servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- “*”
apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: smsoffer-test spec: hosts:
- “*” gateways:
- sms-test-gateway http:
- match:
- uri: exact: /cloudtest route:
- destination: host: smsoffer-test port: number: 8080
Environment google cloud
Cluster state istio 1.0
please instruct me how to get my service into istio jaeger UI graph
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 25 (8 by maintainers)
Please check https://istio.io/docs/setup/kubernetes/spec-requirements/ for service tracing requirement, your service are missing named ports, this will cause the service cannot be traced by Jaeger.
On Tue, Oct 9, 2018 at 11:29 AM Nalin Kularathna notifications@github.com wrote: