Skip to content

Instantly share code, notes, and snippets.

@lucasmaurice
Last active August 13, 2020 19:57
Show Gist options
  • Save lucasmaurice/b04cac0c46e251b4e7d11583950088c3 to your computer and use it in GitHub Desktop.
Save lucasmaurice/b04cac0c46e251b4e7d11583950088c3 to your computer and use it in GitHub Desktop.
Rancher2 Cloud Init
#cloud-config
#
# This is an example file to automatically configure resolv.conf when the
# instance boots for the first time.
#
# Ensure that your yaml is valid and pass this as user-data when starting
# the instance. Also be sure that your cloud.cfg file includes this
# configuration module in the appropriate section.
#
manage_resolv_conf: true
resolv_conf:
nameservers: ['10.40.20.7', '10.40.20.8']
searchdomains:
- effenco.com
- k8s.effenco.com
domain: k8s.effenco.com
options:
rotate: true
timeout: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment