Azure Api managament and kubernetes

0

I have an api in kubernetes exposed through NodePort, when I try to add the api in the azure api mangament through the OpenApiSpecification option and url link is showing me the following error:

Unable to download specified file. Please ensure the URL is valid and the file is publicly accessible.

The description of my service is as follows:

Name:                     kservice

Namespace:                default

Labels:                   app=apis

Annotations:              <none>

Selector:                 app=apikb

Type:                     NodePort

IP:                       10.0.0.123

Port:                     <unset>  80/TCP

TargetPort:               80/TCP

**NodePort:                 <unset>  31285/TCP**

Endpoints:                10.35.748.671:80,10.35.748.697:80

Session Affinity:         None

External Traffic Policy:  Cluster

Events:                   <none>

How can I see an api displayed on Kubernete as NodePort in the Azure Api Managament?

    
asked by Felix David Hernandez Aldana 19.06.2018 в 18:44
source

1 answer

0

I answer my question. To see services of the kubernetes exposed through NodePort, it is necessary that the api management subnet and the Kubernetes subnet be the same or that they can be seen.

Another point is that for the NodePort services to be able to be viewed from a private network, the kubernetes version must be 1.10.3 or higher.

    
answered by 02.08.2018 в 01:59