Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't configure mapping.docs with istio #64

Open
eremeevfd opened this issue Mar 22, 2022 · 0 comments
Open

Can't configure mapping.docs with istio #64

eremeevfd opened this issue Mar 22, 2022 · 0 comments

Comments

@eremeevfd
Copy link

My cluster configuration:

  • GKE v.1.22.6-gke.300
  • Istio v.1.13
  • Edge-stack chart v.7.3.2
    My mapping:
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
  annotations:
    argocd.argoproj.io/tracking-id: dev-assessor-svc:getambassador.io/Mapping:services/dev-assessor-svc
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"getambassador.io/v3alpha1","kind":"Mapping","metadata":{"annotations":{"argocd.argoproj.io/tracking-id":"dev-assessor-svc:getambassador.io/Mapping:services/dev-assessor-svc"},"labels"
:{"argocd.argoproj.io/instance":"dev-assessor-svc"},"name":"dev-assessor-svc","namespace":"services"},"spec":{"circuit_breakers":[{"max_connections":1024,"max_pending_requests":1024,"max_retries":3,"prior
ity":"default"}],"docs":{"display_name":"assessor","path":"/openapi/"},"hostname":"saas-core-dev.haut.ai","prefix":"/service/assessor/","retry_policy":{"num_retries":10,"retry_on":"5xx"},"rewrite":"/servi
ce/assessor/","service":"assessor.services:80","timeout_ms":300000,"tls":"istio-upstream"}}
  creationTimestamp: "2022-02-22T08:27:06Z"
  generation: 7
  labels:
    argocd.argoproj.io/instance: dev-assessor-svc
  name: dev-assessor-svc
  namespace: services
  resourceVersion: "142119937"
  uid: 4680e784-6ce0-432e-b56b-926649811adb
spec:
  ambassador_id:
  - --apiVersion-v3alpha1-only--default
  circuit_breakers:
  - max_connections: 1024
    max_pending_requests: 1024
    max_retries: 3
    priority: default
  docs:
    display_name: assessor
    path: /openapi/
  host: saas-core-dev.haut.ai
  prefix: /service/assessor/
  retry_policy:
    num_retries: 10
    retry_on: 5xx
  rewrite: /service/assessor/
  service: assessor.services:80
  timeout_ms: 300000
  tls: istio-upstream

The issue I'm encountering can be visible in these 2 log lines from edge-stack pod:

emissary-ingress time="2022-03-22 15:00:27.2968" level=error msg="Get \"https://127.0.0.1:8443/service/assessor/openapi/\": http: server gave HTTP response to HTTPS client" func="github.com/datawire/apro/
v2/cmd/amb-sidecar/devportal/server.(*DevPortalHTTPClient).Get" file="github.com/datawire/apro/v2/cmd/amb-sidecar/devportal/server/http.go:82" CMD=amb-sidecar PID=15 THREAD=/devportal_fetcher URL="https:/
/127.0.0.1:8443/service/assessor/openapi/" clusterName=cluster_assessor_services_80_otls_istio_-0 component=devportal mapping=dev-assessor-svc.services mhost=saas-core-dev.haut.ai subsystem=fetcher url="h
ttps://127.0.0.1:8443/service/assessor/openapi/"
emissary-ingress time="2022-03-22 15:00:27.2969" level=error msg="GET failed https://127.0.0.1:8443/service/assessor/openapi/" func="github.com/datawire/apro/v2/cmd/amb-sidecar/devportal/server.(*Fetcher)
.retrieve.func2" file="github.com/datawire/apro/v2/cmd/amb-sidecar/devportal/server/fetcher.go:387" CMD=amb-sidecar PID=15 THREAD=/devportal_fetcher URL="https://127.0.0.1:8443/service/assessor/openapi/"
clusterName=cluster_assessor_services_80_otls_istio_-0 mapping=dev-assessor-svc.services subsystem=fetcher

I tried to set url instead of path: path: http://assessor.services/service/assessor/openapi/ but my service just disappears from DevPortal, however I don't get any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant