I am trying to my spring boot micro service in GKE Cluster with istio 1.1.5 latest version as of now. It throws error and pod never spins up. If I run it as a separate service in Kubernetes engine it works perfectly but with isito, it does not work. The purpose for using istio is to host multiple microservices and to use the feature istio provides. Here is my yaml file:
apiVersion: apps/v1beta1 kind: Deployment metadata: name: revenue spec: replicas: 1 template: metadata: labels: app: revenue-serv tier: backend track: stable spec: containers: - name: backend image: "gcr.io/finacials/revenue-serv:latest" imagePullPolicy: Always ports: - containerPort: 8081 livenessProbe: httpGet: path: / port: 8081 initialDelaySeconds: 15 timeoutSeconds: 30 readinessProbe: httpGet: path: / port: 8081 initialDelaySeconds: 15 timeoutSeconds: 30 --- apiVersion: v1 kind: Service metadata: name: revenue-serv spec: ports: - port: 8081 #targetPort: 8081 #protocol: TCP name: http selector: app: revenue-serv tier: backend type: LoadBalancer --- apiVersion: extensions/v1beta1 kind: Ingress metadata: name: gateway annotations: kubernetes.io/ingress.class: "istio" spec: rules: - http: paths: - path: /revenue/.* backend: serviceName: revenue-serv servicePort: 8081
Thanks for your valuable feedback.