Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.41 KB

File metadata and controls

35 lines (27 loc) · 1.41 KB

appconfiguration

Schema AppConfiguration

AppConfiguration is a developer-centric definition that describes how to run an Application.
This application model builds upon a decade of experience at AntGroup running super large scale
internal developer platform, combined with best-of-breed ideas and practices from the community.

Attributes

name type description default value
accessories {str:any} Accessories defines a collection of accessories that will be attached to the workload. {}
annotations {str:str} Annotations are key/value pairs that attach arbitrary non-identifying metadata to resources. {}
labels {str:str} Labels can be used to attach arbitrary metadata as key-value pairs to resources. {}
workload required wl.Service | wl.Job Workload defines how to run your application code. Currently supported workload profile
includes Service and Job.
N/A

Examples

# Instantiate an App with a long-running service and its image is "nginx:v1"

import kam as ac
import kam.workload as wl
import kam.workload.container as c

helloworld : ac.AppConfiguration {
    workload: wl.Service {
        containers: {
            "nginx": c.Container {
                image: "nginx:v1"
            }
        }
    }
}