forked from tliron/puccini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexec.yaml
52 lines (41 loc) · 1.03 KB
/
exec.yaml
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
tosca_definitions_version: tosca_simple_yaml_1_3
# To execute the scriptlet run:
# puccini-tosca compile examples/javascript/exec.yaml --exec=endpoints
# Also see: functions.yaml
metadata:
template_name: JavaScript Exec Example
template_author: Puccini
puccini.scriptlet.import:endpoints: imports/endpoints.js
topology_template:
node_templates:
frontend:
type: tosca:LoadBalancer
capabilities:
client:
properties:
port: 80
requirements:
- application: application
application:
type: tosca:WebApplication
capabilities:
app_endpoint:
properties:
protocol: http
port: 8080
node_js:
type: tosca:WebServer
capabilities:
admin_endpoint:
properties:
protocol: http
port: 8081
data_endpoint:
properties:
port: 9000
host:
type: tosca:Compute
capabilities:
endpoint:
properties:
port: 9001