Hi Pubudu,
wso2.carbon.apimgt.container.based.gateway:
> enabled: true
> implClass: org.wso2.carbon.apimgt.core.impl.KubernetesGatewayImpl
> implParameters:
> masterUrl: 'https://192.168.99.100:8443'
>
Shouldn't this be accessed through the built-in DNS name "kubernetes" [1]
along with the Service Account token mounted through a Secret Volume?
namespace: wso2
> apiCoreURL: https://localhost:9443
> brokerHost: https://localhost:5672
> cmsType: Kubernetes
> saTokenFileName: 'satoken.txt'
>
[1] -
https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod
Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Associate Technical Lead | WSO2
+94 77 220 7163
Blog: https://medium.com/@chamilad
On Tue, Feb 20, 2018 at 6:04 PM, Pubudu Gunatilaka <[email protected]> wrote:
> Hi,
>
> This feature is initially discussed in mail thread [1] and you can find
> the github issue in [2].
>
> I have changed the configurations as follows.
>
> wso2.carbon.apimgt.container.based.gateway:
> enabled: true
> implClass: org.wso2.carbon.apimgt.core.impl.KubernetesGatewayImpl
> implParameters:
> masterUrl: 'https://192.168.99.100:8443'
> namespace: wso2
> apiCoreURL: https://localhost:9443
> brokerHost: https://localhost:5672
> cmsType: Kubernetes
> saTokenFileName: 'satoken.txt'
>
> You can run API Manager externally as well as inside a pod in Kubernetes.
> In Kubernetes, you need to create a service account and provide the token
> for APIM. This is only needed when you are running externally.
> Additionally, the certificate of the Kubernetes cluster has to be added to
> the client-truststore of APIM.
>
> This is written in an extensible way to support other container management
> systems. You can write your own implementation and provide the class name
> and required configuration values.
>
> We are generating yaml files for Service, Deployment, and Ingress to be
> deployed in Kubernetes. For Openshift, Route resource is generated instead
> of Ingress resource.
>
> [1] - [C5] [APIM] Per API Per Gateway with Kubernetes and Openshift
> [2] - https://github.com/wso2/product-apim/issues/1831
>
> Thank you!
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Senior Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture