Core-os: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 20: | Zeile 20: | ||
[Install] | [Install] | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
| + | </pre> | ||
| + | |||
| + | ----- | ||
| + | |||
| + | =temp= | ||
| + | |||
| + | <pre> | ||
| + | cat user-data | ||
| + | |||
| + | #cloud-config | ||
| + | |||
| + | --- | ||
| + | coreos: | ||
| + | etcd: | ||
| + | discovery: https://discovery.etcd.io/d90bc0dcab88d7b5e5e7504ed1df1890 | ||
| + | addr: $public_ipv4:4001 | ||
| + | peer-addr: $public_ipv4:7001 | ||
| + | etcd2: | ||
| + | advertise-client-urls: http://$public_ipv4:2379 | ||
| + | initial-advertise-peer-urls: http://$private_ipv4:2380 | ||
| + | listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001 | ||
| + | listen-peer-urls: http://$private_ipv4:2380,http://$private_ipv4:7001 | ||
| + | discovery: https://discovery.etcd.io/d90bc0dcab88d7b5e5e7504ed1df1890 | ||
| + | fleet: | ||
| + | public-ip: $public_ipv4 | ||
| + | flannel: | ||
| + | interface: $public_ipv4 | ||
| + | units: | ||
| + | - name: etcd.service | ||
| + | command: start | ||
| + | - name: fleet.service | ||
| + | command: start | ||
</pre> | </pre> | ||
Version vom 22. April 2015, 19:43 Uhr
docker cluster
- user-data
...
...
...
- name: httpd.service
command: start
enable: true
content: |
[Unit]
Description=httpd
Requires=docker.service
After=docker.service
[Service]
ExecStart=/usr/bin/docker run -d -p 80:80 --name own-httpd httpd
[Install]
WantedBy=multi-user.target
temp
cat user-data
#cloud-config
---
coreos:
etcd:
discovery: https://discovery.etcd.io/d90bc0dcab88d7b5e5e7504ed1df1890
addr: $public_ipv4:4001
peer-addr: $public_ipv4:7001
etcd2:
advertise-client-urls: http://$public_ipv4:2379
initial-advertise-peer-urls: http://$private_ipv4:2380
listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
listen-peer-urls: http://$private_ipv4:2380,http://$private_ipv4:7001
discovery: https://discovery.etcd.io/d90bc0dcab88d7b5e5e7504ed1df1890
fleet:
public-ip: $public_ipv4
flannel:
interface: $public_ipv4
units:
- name: etcd.service
command: start
- name: fleet.service
command: start