forked from cloudfoundry/docs-bosh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
warden-cpi.html.md.erb
100 lines (75 loc) · 2.35 KB
/
warden-cpi.html.md.erb
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
---
title: Warden/Garden CPI
---
<p class="note">Note: Updated for bosh-warden-cpi v28+.</p>
This topic describes cloud properties for different resources created by the Warden/Garden CPI.
## <a id='networks'></a> Networks
Currently the CPI does not support any cloud properties for networks.
Example of a manual network:
```yaml
networks:
- name: default
type: manual
subnets:
- range: 10.244.1.0/24
gateway: 10.244.1.0
static: [10.244.1.34]
```
<p class="note">Note: bosh-warden-cpi v24+ makes it possible to use subnets bigger than /30 as exemplified above. bosh-lite v9000.48.0 uses that newer bosh-warden-cpi.</p>
Example of a dynamic network:
```yaml
networks:
- {name: default, type: dynamic}
```
The CPI does not support vip networks.
---
## <a id='resource-pools'></a> Resource Pools
Currently the CPI does not support any cloud properties for resource pools.
Example of a resource pool:
```yaml
resource_pools:
- name: default
network: default
stemcell:
name: bosh-warden-boshlite-ubuntu-trusty-go_agent
version: latest
```
---
## <a id='disk-pools'></a> Disk Pools
Currently the CPI does not support any cloud properties for disks.
Example of 10GB disk:
```yaml
disk_pools:
- name: default
disk_size: 10_240
```
---
## <a id='global'></a> Global Configuration
The CPI uses containers to represent VMs and loopback devices to represent disks. Since the CPI can only talk to a single Garden server it can only manage resources on a single machine.
Example of a CPI configuration:
```yaml
properties:
warden_cpi:
loopback_range: [100, 130]
warden:
connect_network: tcp
connect_address: 127.0.0.1:7777
actions:
stemcells_dir: "/var/vcap/data/cpi/stemcells"
disks_dir: "/var/vcap/store/cpi/disks"
host_ephemeral_bind_mounts_dir: "/var/vcap/data/cpi/ephemeral_bind_mounts_dir"
host_persistent_bind_mounts_dir: "/var/vcap/data/cpi/persistent_bind_mounts_dir"
agent:
mbus: nats://nats:[email protected]:4222
blobstore:
provider: dav
options:
endpoint: http://10.244.8.2:25251
user: agent
password: agent-password
```
---
## <a id='notes'></a> Notes
* Garden server does not have a UI; however, you can use [gaol CLI](https://github.com/xoebus/gaol) to interact with it directly.
---
[Back to Table of Contents](index.html#cpi-config)