-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy path101.02-bundle.json
94 lines (94 loc) · 2.17 KB
/
101.02-bundle.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
{
"credentials": {
"hostkey": {
"env": "HOST_KEY",
"path": "/etc/hostkey.txt"
},
"image_token": {
"env": "AZ_IMAGE_TOKEN",
"applyTo": ["install"]
},
"kubeconfig": {
"path": "/home/.kube/config"
}
},
"definitions": {
"http_port": {
"default": 80,
"maximum": 10240,
"minimum": 10,
"type": "integer"
},
"port": {
"maximum": 65535,
"minimum": 1024,
"type": "integer"
},
"string": {
"type": "string"
},
"x509Certificate": {
"contentEncoding": "base64",
"contentMediaType": "application/x-x509-user-cert",
"type": "string",
"writeOnly": true
}
},
"description": "An example 'thick' helloworld Cloud-Native Application Bundle",
"images": {
"my-microservice": {
"contentDigest": "sha256:bbbbbbbbbbbb...",
"description": "helloworld microservice",
"image": "example/helloworld:0.1.2",
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"labels": {
"architecture": "amd64",
"os": "linux"
},
"size": 1337
}
},
"invocationImages": [
{
"contentDigest": "sha256:aaaaaaaaaaaa...",
"image": "example/helloworld:1.2.3",
"imageType": "docker",
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"labels": {
"architecture": "amd64",
"os": "linux"
},
"size": 1337
}
],
"name": "helloworld",
"outputs": {
"clientCert": {
"definition": "x509Certificate",
"path": "/cnab/app/outputs/clientCert"
},
"hostName": {
"applyTo": [
"install"
],
"definition": "string",
"description": "the hostname produced installing the bundle",
"path": "/cnab/app/outputs/hostname"
},
"port": {
"definition": "port",
"path": "/cnab/app/outputs/port"
}
},
"parameters": {
"backend_port": {
"definition": "http_port",
"description": "The port that the backend will listen on",
"destination": {
"path": "/path/to/backend_port"
}
}
},
"schemaVersion": "v1.0.0",
"version": "1.0.0"
}