I am new to kubernetes & istio, trying to apply the bookinfo tutorial to my personal project, i don’t get the same results when monitoring traffic through kiali ui or grafana ui.
i believe i didn’t change much from the bookinfo project, here is the config i used (using helm)
##################################################################################################
# Webapp services
##################################################################################################
apiVersion: v1
kind: Service
metadata:
name: "{{ .Values.service.name }}-svc"
namespace: "{{ .Values.service.namespace }}"
labels:
app: "{{ .Values.service.name }}"
service: "{{ .Values.service.name }}-svc"
spec:
ports:
- port: {{ .Values.service.port }}
name: "{{ .Values.service.name }}-http"
selector:
app: "{{ .Values.service.name }}"
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: "{{ .Values.service.name }}-{{ .Values.service.version }}"
namespace: "{{ .Values.service.namespace }}"
labels:
app: "{{ .Values.service.name }}"
version: "{{ .Values.service.version }}"
spec:
replicas: {{ .Values.productionDeployment.replicaCount }}
selector:
matchLabels:
app: "{{ .Values.service.name }}"
version: "{{ .Values.service.version }}"
template:
metadata:
labels:
app: "{{ .Values.service.name }}"
version: "{{ .Values.service.version }}"
spec:
containers:
- name: "{{ .Values.service.name }}"
image: "{{ .Values.productionDeployment.image.repository }}:{{ .Values.productionDeployment.image.tag }}"
imagePullPolicy: {{ .Values.productionDeployment.image.pullPolicy }}
ports:
- containerPort: {{ .Values.service.port }}
---
and here’s the istio config i used:
##################################################################################################
# Webapp gateway & virtual service
##################################################################################################
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: "{{ .Values.service.name }}-gateway"
namespace: "{{ .Values.service.namespace }}"
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: "{{ .Values.service.name }}"
namespace: "{{ .Values.service.namespace }}"
spec:
hosts:
- "*"
gateways:
- "{{ .Values.service.name }}-gateway"
http:
- match:
- uri:
exact: /
route:
- destination:
host: "{{ .Values.service.name }}-svc"
port:
number: {{ .Values.service.port }}
---
this is what i see in kiali:
however in prometheus i see traces
what could passibly be wrong with my installation or configuration??
this is the command i used to install istio:
helm install ~/istio-1.1.7/install/kubernetes/helm/istio --name istio --namespace istio-system --set grafana.enabled=true --set grafana.datasources.datasources.datasources.url="http://prometheus:9090" --set kiali.enabled=true --set kiali.dashboard.jaegerURL="http://jaeger-query:16686" --set kiali.dashboard.grafanaURL="http://grafana:3000" --set kiali.prometheusAddr="http://prometheus:9090" --set servicegraph.enabled=true --set servicegraph.prometheusAddr="http://prometheus:9090" --set tracing.enabled=true