1 Star 0 Fork 14

joezhoucx/coreos

forked from cyzhang/coreos 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cloud-config.yaml 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
cyzhang 提交于 2015-05-22 15:10 . up file
#cloud-config
hostname: mycoreos
coreos:
units:
- name: etcd.service
command: start
content: |
[Unit]
Description=etcd
[Service]
User=etcd
PermissionsStartOnly=true
ExecStart=/usr/bin/etcd \
--name mycoreos \
--addr ${YOUR_IPV4}:4001 \
--bind-addr 0.0.0.0 \
--cluster-active-size 2 \
--data-dir /var/lib/etcd \
--http-read-timeout 86400 \
--peer-addr ${YOUR_IPV4}:7001 \
--snapshot true
Restart=always
RestartSec=10s
- name: fleet.service
command: start
content: |
[Unit]
Description=fleet daemon
Wants=etcd.service
After=etcd.service
Wants=fleet.socket
After=fleet.socket
[Service]
Environment="FLEET_ETCD_SERVERS=http://127.0.0.1:4001"
Environment="FLEET_METADATA=role=master"
ExecStart=/usr/bin/fleetd
Restart=always
RestartSec=10s
- name: docker.service
command: start
content: |
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.io
[Service]
ExecStart=/usr/bin/docker -H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock -d -s=btrfs -H fd:// --insecure-registry="0.0.0.0/0"
[Install]
WantedBy=multi-user.target
- name: static.network
content: |
[Match]
Name=${YOUR_NETWORK_NAME}
[Network]
Address=192.168.1.100/24
Gateway=192.168.1.1
DNS=8.8.8.8
DNS=4.4.4.4
users:
- name: core
ssh-authorized-keys:
- ${YOUR_SSH_KEY}
- groups:
- sudo
- docker
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/joezhoucx/coreos.git
git@gitee.com:joezhoucx/coreos.git
joezhoucx
coreos
coreos
master

搜索帮助