1 #This yaml template instantiates kubernetes nodes (using instance.yaml subtemplate).
2 #It contains some node specific things, and has been split from main template
3 #to be able to do some late evaluation tricks.
4 heat_template_version: 2017-02-24
5 description: "This template instantiates a single kubernetes node using the instance.yaml subtemplate"
33 #Volume for storing /var/lib/docker for node.
35 type: OS::Cinder::Volume
38 size: { get_param: docker_storage_size }
39 #Call generic instance template.
45 template: "node%index%"
46 params: { "%index%": { get_param: nodenum } }
47 key_name: { get_param: key_name }
48 image_name: { get_param: image_name }
49 network: { get_param: network }
50 subnet: { get_param: subnet }
51 flavor_name: { get_param: flavor_name }
52 availability_zone: { get_param: availability_zone }
53 notify_command: { get_param: notify_command }
54 security_group: { get_param: security_group }
55 scheduler_hints: { get_param: scheduler_hints }
56 demo_network: { get_param: demo_network }
57 #Attachment of docker volume to node.
58 docker_storage_attachment:
59 type: OS::Cinder::VolumeAttachment
61 volume_id: { get_resource: docker_storage }
62 instance_uuid: { get_resource: instance }
65 value: { get_resource: instance }
67 value: { get_attr: ["instance", "port_id"] }
69 value: { get_attr: ["instance", "ip"] }
71 value: [[{ get_resource: docker_storage }, "/var/lib/docker"]]