Last active
May 4, 2022 13:10
-
-
Save goodjob1114/9decc4974881b720f5be to your computer and use it in GitHub Desktop.
cloud-config.yaml example for install coreos to disk....$ coreos-install -d /dev/sda -C stable -c cloud-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
hostname: yourcorename | |
coreos: | |
etcd: | |
addr: $public_ipv4:4001 | |
peer-addr: $private_ipv4:7001 | |
units: | |
- name: etcd.service | |
command: start | |
- name: fleet.service | |
command: start | |
- name: dhcp.network | |
content: | | |
[Match] | |
Name=enp3s0 | |
[Network] | |
DHCP=yes | |
users: | |
- name: core | |
passwd: # password hash, https://coreos.com/os/docs/latest/cloud-config.html | |
groups: | |
- sudo | |
- docker | |
ssh-authorized-keys: | |
- ssh-rsa # your id_rsa.pub content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment