November 2018
Intermediate to advanced
390 pages
10h 8m
English
The following code will generate a Docker image with the Kubernetes deployment file in YAML format. It is very well organized by the Ballerina source code folder tree structure, referenced here:
// --------------------------------------@kubernetes:Deployment { image: "demo/ballerina-packt-image", name: "ballerina-packt-image"}// secretes.toml is file in which we defined our secure or other variables@kubernetes:ConfigMap { ballerinaConf: "secretes.toml"}@http:ServiceConfig { basePath: "/"}// --------------------------------------//Following is just same code that we given in above twitter example to give you reference about where you can place your deployment codeservice<http:Service> hello bind listener { @http:ResourceConfig ...
Read now
Unlock full access