-
Notifications
You must be signed in to change notification settings - Fork 1
/
app-def.json
120 lines (120 loc) · 5.06 KB
/
app-def.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"definitions": {},
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"properties": {
"metadata": {
"$id": "/properties/metadata",
"type": "object",
"properties": {
"labels": {
"$id": "/properties/metadata/properties/labels",
"type": "object",
"properties": {
"app.kubernetes.io/name": {
"$id": "/properties/metadata/properties/labels/properties/app.kubernetes.io/name",
"type": "string",
"title": "The App.kubernetes.io/name Schema",
"description": "The name of the application stack",
"examples": [
"wordpress",
"Mediawiki"
]
},
"app.kubernetes.io/version": {
"$id": "/properties/metadata/properties/labels/properties/app.kubernetes.io/version",
"type": "string",
"title": "The App.kubernetes.io/version Schema",
"description": "The current version of the running application. The version could be a number, such as one based on Semantic Versioning, or other reference, such as a revision ID from a version control system",
"examples": [
"1.0.1"
]
},
"app.kubernetes.io/component-name": {
"$id": "/properties/metadata/properties/labels/properties/app.kubernetes.io/component-name",
"type": "string",
"title": "The App.kubernetes.io/component-name Schema",
"description": "name of the component: e.g 'nginx', 'mysql'",
"examples": [
"nginx",
"mysql"
]
},
"app.kubernetes.io/component-version": {
"$id": "/properties/metadata/properties/labels/properties/app.kubernetes.io/component-version",
"type": "string",
"title": "The App.kubernetes.io/component-version Schema",
"description": "version of the componen",
"examples": [
"nginx",
"mysql"
]
},
"app.kubernetes.io/component": {
"$id": "/properties/metadata/properties/labels/properties/app.kubernetes.io/tier",
"type": "string",
"title": "The App.kubernetes.io/tier Schema",
"description": "The component of the larger application (e.g., front-end). This is optional as not every application will have different components",
"examples": [
"front-end"
]
},
"app.kubernetes.io/deploy-manager": {
"$id": "/properties/metadata/properties/labels/properties/app.kubernetes.io/deploy-manager",
"type": "string",
"title": "The App.kubernetes.io/deploy-manager Schema",
"description": "The tool being used to manage the operation of an application (e.g., helm).",
"default": "",
"examples": [
"helm",
"kubectl"
]
},
"label app.kubernetes.io/app-instance": {
"$id": "/properties/metadata/properties/labels/properties/app.kubernetes.io/app-instance",
"type": "string",
"title": "The App.kubernetes.io/app-instance Schema",
"description": "A string/id of a running instance. In addition to name, it allows to distinct between two instances of a same application. Similar to the ‘release’ label in Helm ",
"default": "",
"examples": [
"pre-prod",
"crabs-1"
]
}
},
"required": [
"app.kubernetes.io/name",
"app.kubernetes.io/version",
"app.kubernetes.io/deploy-manager"
]
},
"annotations": {
"$id": "/properties/metadata/properties/annotations",
"type": "object",
"properties": {
"app.kubernetes.io/usage": {
"$id": "/properties/metadata/properties/annotations/properties/app.kubernetes.io/usage",
"type": "string",
"title": "The App.kubernetes.io/usage Schema",
"description": "The location for usage information for the application. A preference is given to version specific information",
"examples": [
"https://example.com/foo/1.2/"
]
},
"app.kubernetes.io/url": {
"$id": "/properties/metadata/properties/annotations/properties/app.kubernetes.io/url",
"type": "string",
"title": "The App.kubernetes.io/url Schema",
"description": "A url to find out more information about the application (e.g., http://postgresql.org or a vcs repository location)",
"examples": [
"http://postgresql.org"
]
}
},
"required": [
]
}
}
}
}
}