Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CoreOS Technical Overview @ pdxdevops
Search
Brandon Philips
February 24, 2014
Programming
3
360
CoreOS Technical Overview @ pdxdevops
Slides from a talk given at PDX devops
http://pdxdevops.org/
Brandon Philips
February 24, 2014
Tweet
Share
More Decks by Brandon Philips
See All by Brandon Philips
Node.js Workflow with Minikube and Skaffold
philips
0
250
Manage the App on Kubernetes
philips
0
330
Production Backbone Monitoring Containerized Apps
philips
0
140
KubeCon EU 2017: Dancing on the Edge of a Volcano
philips
1
670
rkt - KubeCon EU keynote - 2017
philips
1
240
FOSDEM_Keynote_2017-_.pdf
philips
0
110
Tectonic Summit Day 2 Keynote
philips
0
320
Kubernetes: Simple to Manage Anywhere (self-hosted, Tectonic upgrade demo)
philips
0
340
KubeCon Keynote 2016- Distributed Systems Simplified on Kubernetes
philips
2
540
Other Decks in Programming
See All in Programming
Beyond Portability: Live Migration for Evolving WebAssembly Workloads
chikuwait
0
380
PHP 8.4の新機能「プロパティフック」から学ぶオブジェクト指向設計とリスコフの置換原則
kentaroutakeda
1
310
XSLTで作るBrainfuck処理系
makki_d
0
210
Elixir で IoT 開発、 Nerves なら簡単にできる!?
pojiro
1
150
PHPで始める振る舞い駆動開発(Behaviour-Driven Development)
ohmori_yusuke
2
130
Haskell でアルゴリズムを抽象化する / 関数型言語で競技プログラミング
naoya
17
4.8k
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
120
Spring gRPC で始める gRPC 入門 / Introduction to gRPC with Spring gRPC
mackey0225
2
520
git worktree × Claude Code × MCP ~生成AI時代の並列開発フロー~
hisuzuya
0
180
『自分のデータだけ見せたい!』を叶える──Laravel × Casbin で複雑権限をスッキリ解きほぐす 25 分
akitotsukahara
1
360
AIネイティブなプロダクトをGolangで挑む取り組み
nmatsumoto4
0
120
A comprehensive view of refactoring
marabesi
0
970
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
270
20k
GraphQLとの向き合い方2022年版
quramy
46
14k
Raft: Consensus for Rubyists
vanstee
140
7k
Being A Developer After 40
akosma
90
590k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.8k
Six Lessons from altMBA
skipperchong
28
3.8k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Designing for humans not robots
tammielis
253
25k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
920
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Transcript
CoreOS
Linux for Massive Server Deployments
@BrandonPhilips github.com/philips
secure the internet Why?
manual updates
automatic updates
automatic updates
rpm replace files restart processes edit configs
apt replace files restart processes edit configs
chef replace files restart processes edit configs
puppet replace files restart processes edit configs
kernel systemd ssh docker python java nginx mysql openssl app
distro distro distro distro distro distro dist
kernel systemd ssh docker python java nginx mysql openssl app
distro distro distro distro distro distro dist
The Linux Kernel does not break userspace.
WE DO NOT BREAK USERSPACE! Seriously. How hard is this
rule to understand? We particularly don't break user space with TOTAL CRAP. - Linus Torvalds
None
None
etcd
/etc distributed
A highly-available key value store for shared configuration and service
discovery.
A highly-available key value store for shared configuration and service
discovery.
Available 3 1 2 5 4
Available 3 1 5 4
Available 3 1 4
Unavailable 3 1
A highly-available key value store for shared configuration and service
discovery.
$ mkdir services! ! $ set services/db0 10.0.0.8! $ set
services/db1 10.0.0.10! ! $ set services/db-master db0 etcdctl
GET /services/db0 “10.0.0.8”
A highly-available key value store for shared configuration and service
discovery.
{ "password": "cleartext", "user": "root" }
A highly-available key value store for shared configuration and service
discovery.
A highly-available key value store for shared configuration and service
discovery & locking.
App etcd DB?
App etcd No DB
App etcd I will watch and wait
App etcd DB Master?
App etcd No DB Master. You’re it. DB Master appeared
App etcd Heartbeat Watch SELECT * from Awesome
App etcd Heartbeat DB Master? Watch
App etcd Heartbeat Master exists. Watch
App etcd Heartbeat Heartbeat Watch
App etcd You’re master now New DB
App etcd Watch Heartbeat DROP *
App etcd Watch Heartbeat DB Master?
App etcd master exists Heartbeat Watch
$ set services/db-master db0! ! $ set --swap-with-value "db1" \!
services/db-master db0! ! Compare failed ([db1 != db0]! etcdctl
how does the db know how to talk to etcd?
buddy etcd { host: “db1”, port: 4349 }
buddy etcd heartbeat
etcd
linux+systemd CoreOS is
mount storage setup networks run processes linux+systemd manages the single
server:
mount storage $ cat media-state.mount! [Mount]! What=/dev/disk/by-label/STATE! Where=/media/state! Options=commit=600,data=ordered! Type=ext4!
FsckPassNo=0
setup networks $ cat public.link! [Match]! MACAddress=52:54:00:12:34:56! [Link]! Alias=public! !
$ cat public.network! [Network]! DHCP=True!
run services $ cat docker.service! [Unit]! After=network.target! ! [Service]! ExecStart=/usr/bin/docker
-d -H fd://! Restart=on-failure! ! [Install]! WantedBy=multi-user.target
docker runs containers $ cat scrup.service! [Unit]! Description=Scrup Service! After=docker.service!
! [Service]! ExecStart=/usr/bin/docker run -p 3000:3000 philips/scrup systemd logs and monitors
fleet demo
more security more reliability more stability
Credits: Browser Icons: https://www.iconfinder.com/ Thanks! @coreoslinux