module-ballerina-kubernetes icon indicating copy to clipboard operation
module-ballerina-kubernetes copied to clipboard

Should be able to define container ports

Open raj-rajaratnam opened this issue 6 years ago • 3 comments

Description: Currently container ports are defined from Service annotations. Ballerina core exposes some ports (e.g Prometheus) for which we don't have an endpoint defined in our ballerina program (hence we can't define service annotations). So we should be able to define these kind of ports in Kubernetes:Deployment annotation.

ports: 
- containerPort: 8280
   name: http 
- containerPort: 9797
   name: prometheus 

raj-rajaratnam avatar Oct 19 '18 15:10 raj-rajaratnam