CoreOS introduction - by johann romefort
-
Upload
johann-romefort -
Category
Software
-
view
214 -
download
0
Transcript of CoreOS introduction - by johann romefort
What is CoreOS?
• A minimal Linux distro (~100MB)
• Huge focus on security: CoreOS mission is “Secure the Internet”
• The best way to run containers
• A read-only rootfs
• Automatic updates
Automatic Updates
• Active / Passive partitions
• Update Partition B while partition A is running. Reboot to partition B, reverse to A if any problem found.
• Reboot causes app downtime… unless…
Fleet
• Distributed init system for cluster
• Uses etcd
• Actually relies on systemd: Submit a systemd Unit file and handles scheduling on the cluster
• Enable high-availability services
Boot Sequence
• Look for cloud-config
• Lookup how to join an existing cluster
• Start etcd service
• Start fleet service
Pre-requesites
• Make sure you use a SSH key
• Create a DigitalOcean Personal Access Token (to use the DO API)
Using fleet to schedule a service
• fleetctl submit hello.service
• fleetctl list-unit-files
• fleetctl cat hello.service
• fleetctl start hello.service
• fleetctl list-units
• fleetctl status hello.service
• fleetctl journal hello.service
Thank [email protected] http://linkedin.com/in/romefort http://twitter.com/romefort
Ping me here: