-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample.xml
More file actions
52 lines (52 loc) · 1.83 KB
/
Copy pathexample.xml
File metadata and controls
52 lines (52 loc) · 1.83 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
XML is not suited for this.
We want the declaration site of these bindings to be as close as possible to their use sites.
-->
<!DOCTYPE devops [
<!ENTITY example_port "1234">
]>
<d:devops
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://spacetimecat.com/xmlns/devops devops.xsd"
xmlns:d="http://spacetimecat.com/xmlns/devops"
xmlns:n="http://spacetimecat.com/xmlns/devops/network"
>
<!-- Define your applications. -->
<d:application>
<!-- Name must be unique. -->
<d:name>example</d:name>
<d:description>an example application</d:description>
<d:language>
<d:java>
<d:main_class>com.example.Main</d:main_class>
</d:java>
</d:language>
<d:resource_requirement>
<d:min_cpu>1</d:min_cpu>
<d:max_cpu>4</d:max_cpu>
<d:min_memory unit="MB">4096</d:min_memory>
</d:resource_requirement>
<d:allow_horizontal_scaling>true</d:allow_horizontal_scaling>
<d:network>
<n:forwarding>
<n:from>
<!-- URL base must be unique. -->
<n:url_base>http://example.com/</n:url_base>
</n:from>
<n:to>
<n:local_port>&example_port;</n:local_port>
</n:to>
</n:forwarding>
<n:forwarding>
<n:from>
<!-- This assumes TLS termination at load balancer. -->
<n:url_base>https://example.com/</n:url_base>
</n:from>
<n:to>
<n:local_port>&example_port;</n:local_port>
</n:to>
</n:forwarding>
</d:network>
</d:application>
</d:devops>