Skip to main content
Version: v0.14 🚧

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

nametypedescriptiondefault 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 requiredservice.Service | wl.JobWorkload 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: service.Service {
containers: {
"nginx": c.Container {
image: "nginx:v1"
}
}
}
}