Giter Site home page Giter Site logo

Comments (7)

mattbates avatar mattbates commented on May 23, 2024 5

I experienced the same error and fixed it by adding name: http to the port on the Service. The Service I used didn't have this set, but it's required - see here:

Kubernetes Services are required for properly functioning Istio service. Service ports must be named and these names must begin with http or grpc prefix to take advantage of Istioโ€™s L7 routing features, e.g. name: http-foo or name: http is good. Services with non-named ports or with ports that do not have a http or grpc prefix will be routed as L4 traffic.

Perhaps this might help for you too.

from old_issues_repo.

kyessenov avatar kyessenov commented on May 23, 2024

@mclarke47 do you mind listing all ingresses that result in this failure? You can use kubectl get ingress --all.

from old_issues_repo.

Crevil avatar Crevil commented on May 23, 2024

I'm hitting the same when using the following ingress object.

The following ingress objects are in place

$ kubectl -n local get ing

NAME            HOSTS                         ADDRESS   PORTS     AGE
supportsystem   support2-local.company.com             80, 443   11m

This is the ingress object:

$ kubectl -n local get ing supportsystem -o yaml

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: istio
  creationTimestamp: 2017-06-07T08:32:07Z
  generation: 1
  name: supportsystem
  namespace: local
  resourceVersion: "31763"
  selfLink: /apis/extensions/v1beta1/namespaces/local/ingresses/supportsystem
  uid: ca917407-4b5b-11e7-b55e-080027069e42
spec:
  rules:
  - host: support2-local.company.com
    http:
      paths:
      - backend:
          serviceName: support2-oauth2
          servicePort: 80
        path: /.*
  tls:
  - hosts:
    - support2-local.company.com
    secretName: cert
status:
  loadBalancer: {}

I'm running the ingress controller in a DaemonSet with the following configuration.

$ kubectl -n local get ds istio-ingress -o yaml

apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  creationTimestamp: 2017-06-06T11:16:01Z
  generation: 1
  labels:
    istio: ingress
  name: istio-ingress
  namespace: local
  resourceVersion: "7085"
  selfLink: /apis/extensions/v1beta1/namespaces/local/daemonsets/istio-ingress
  uid: 85adf314-4aa9-11e7-b55e-080027069e42
spec:
  selector:
    matchLabels:
      istio: ingress
  template:
    metadata:
      annotations:
        alpha.istio.io/sidecar: ignore
      creationTimestamp: null
      labels:
        istio: ingress
    spec:
      containers:
      - args:
        - proxy
        - ingress
        - -v
        - "2"
        env:
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        image: docker.io/istio/proxy_debug:0.1.5
        imagePullPolicy: Always
        name: istio-ingress
        ports:
        - containerPort: 80
          hostPort: 80
          protocol: TCP
        - containerPort: 443
          hostPort: 443
          protocol: TCP
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: istio-ingress-service-account
      serviceAccountName: istio-ingress-service-account
      terminationGracePeriodSeconds: 30
  templateGeneration: 1
  updateStrategy:
    type: OnDelete
status:
  currentNumberScheduled: 1
  desiredNumberScheduled: 1
  numberAvailable: 1
  numberMisscheduled: 0
  numberReady: 1
  observedGeneration: 1
  updatedNumberScheduled: 1

from old_issues_repo.

dmcqueen avatar dmcqueen commented on May 23, 2024

Also getting this same error

[2017-06-15 18:19:19.867][21][warning][router] rds: fetch failure: JSON at lines 3-9 does not conform to schema.
Invalid schema: #/properties/routes
Schema violation: type
Offending document key: #/routes

from old_issues_repo.

dmcqueen avatar dmcqueen commented on May 23, 2024

Just a basic ingress.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: gateway
  annotations:
    kubernetes.io/ingress.class: "istio"
spec:
  rules:
  - http:
      paths:
      - path: /docs
        backend:
          serviceName: docs
          servicePort: 8889

from old_issues_repo.

kyessenov avatar kyessenov commented on May 23, 2024

Isaiah, can you tell a quick summary of why schema fails for TCP ports?

from old_issues_repo.

mclarke47 avatar mclarke47 commented on May 23, 2024

See the reference for the fix

from old_issues_repo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.