forked from cloudfoundry/docs-bosh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uploading-stemcells.html.md.erb
68 lines (46 loc) · 2.03 KB
/
uploading-stemcells.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
---
title: Uploading Stemcells
---
(See [What is a Stemcell?](stemcell.html) for an introduction to stemcells.)
As described earlier, each resource pool references a specific stemcell on the Director. Before the Director can form a deployment, all referenced stemcells must be uploaded to the Director.
## <a id='find'></a> Finding Stemcells
The [stemcells section of bosh.io](//bosh.io/stemcells) lists official stemcells.
---
## <a id='upload'></a> Uploading to the Director
Assuming the CLI is already targeted at the Director, the CLI provides a single command to upload a stemcell.
- If you have a URL to a stemcell tarball (for example URL provided by bosh.io):
<pre class="terminal">
$ bosh upload stemcell [URL] --skip-if-exists
</pre>
- If you have a stemcell tarball on your local machine:
<pre class="terminal">
$ bosh upload stemcell ~/Downloads/bosh-stemcell-2751-aws-xen-hvm-ubuntu-trusty-go_agent.tgz --skip-if-exists
</pre>
Once the command succeeds you can view all uploaded stemcells in the Director:
<pre class="terminal">
$ bosh stemcells
+-----------------------------------------+---------+--------------+
| Name | Version | CID |
+-----------------------------------------+---------+--------------+
| bosh-aws-xen-hvm-ubuntu-trusty-go_agent | 2751 | ami-cc27a1a4 |
| bosh-aws-xen-centos-go_agent | 2710 | ami-a0a674c8 |
+-----------------------------------------+---------+--------------+
(*) Currently in-use
Stemcells total: 2
</pre>
---
## <a id='using'></a> Deployment Manifest Usage
To use uploaded stemcell in your deployment, stemcell needs to be referenced by one of the resource pools:
```yaml
resource_pools:
- name: redis-servers
network: default
# Association with Ubuntu Trusty stemcell for AWS
stemcell:
name: bosh-aws-xen-hvm-ubuntu-trusty-go_agent
version: 2751
cloud_properties: {instance_type: m1.medium}
```
---
Next: [Uploading Releases](uploading-releases.html)
Previous: [Deployment Basics](deployment-basics.html)