Hi All,
In AppCloud, We are implementing a feature for Application Launch. We are
considering following URL patterns and custom URL for Application Launch.
- TenantDomain-ApplicationKey-Version.services.cloud.wso2.com
The application and version specific launch URL pattern.
- TenantDomain-ApplicationKey.services.cloud.wso2.com
The default application launch URL pattern.
- MyCustomDomain.com
The user can add their own domain name for particular application. For
custom URL, user should add a CNAME record to DNS registrar with given
application specific URL.
Ex:- MyCustomDomain.com CNAME MyTenant-MyApp-Version.services.cloud.wso2.com
The following diagram will explain the architecture of the Application
Launch URL.
In 3rd step of above diagram, we are creating ingress resources and
services in K8s. In order for the Ingress resource to work, the cluster
must have an Ingress controller running. The ingress controller is ruining
on NGINX pod and update the nginx.conf file according to changes on
ingress. Sample nginx.conf will shown in following
events {
worker_connections 1024;
}
http {
# http://nginx.org/en/docs/http/ngx_http_core_module.html
types_hash_max_size 2048;
server_names_hash_max_size 512;
server_names_hash_bucket_size 128;
server {
listen 80;
server_name danushka-dan-1-0-0.services.cloud.wso2.com;
location / {
proxy_set_header Host $host;
proxy_pass http://dan-1-0-0-8080.danushka.svc.cluster.local:80;
}
}
server {
listen 80;
server_name magnolia.myperl.org;
location / {
proxy_set_header Host $host;
proxy_pass
http://magnolia-1-0-0-8080.wso2dmitry2639.svc.cluster.local:80;
}
}
}
We are resolving different server name for application adding wild card DNS
record to the DNS registrar. Also we are adding nginx conf directive for
custom domain. In future we will try to use https instead of http for
Application Launch URL, because currently ingress is not support https.
Also we are planing to use load balance to the pods without load balancing
to the service.
Thanks!
--
Best regards,
*Lahiru Manohara*
*Software Engineer*
Mobile: +94716561576
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture