You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #3633 from brdude/extra_user-data
Automatic merge from submit-queue.
Allow passing in extra user-data to cloud-init
This allows for the utilization of multipart mime to pass extra data to cloud-init.
This gives you the ability to utilize cloud-init features such as setting up a CM or monitoring so that existing infrastructure components can be leveraged.
Copy file name to clipboardExpand all lines: docs/instance_groups.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,3 +213,32 @@ EBS-Optimized instances can be created by setting the following field:
213
213
spec:
214
214
rootVolumeOptimization: true
215
215
```
216
+
217
+
## Additional user-data for cloud-init
218
+
219
+
Kops utilizes cloud-init to initialize and setup a host at boot time. However in certain cases you may already be leaveraging certain features of cloud-init in your infrastructure and would like to continue doing so. More information on cloud-init can be found [here](http://cloudinit.readthedocs.io/en/latest/)
220
+
221
+
222
+
Aditional user-user data can be passed to the host provisioning by setting the `ExtraUserData` field. A list of valid user-data content-types can be found [here](http://cloudinit.readthedocs.io/en/latest/topics/format.html#mime-multi-part-archive)
223
+
224
+
Example:
225
+
```
226
+
spec:
227
+
extraUserData:
228
+
- name: myscript.sh
229
+
type: text/x-shellscript
230
+
content: |
231
+
#!/bin/sh
232
+
echo "Hello World. The time is now $(date -R)!" | tee /root/output.txt
0 commit comments