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
Building Kubernetes Infra using Kubespray
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Seungkyu Ahn
June 29, 2018
Programming
0
290
Building Kubernetes Infra using Kubespray
This presentation is about how to build Kubernetes cluster using Kubespray.
Seungkyu Ahn
June 29, 2018
Tweet
Share
More Decks by Seungkyu Ahn
See All by Seungkyu Ahn
Cluster API for AWS
seungkyua
0
74
Kubernetes for beginner
seungkyua
0
170
Other Decks in Programming
See All in Programming
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
180
Oxlintはいいぞ
yug1224
5
1.3k
Oxlint JS plugins
kazupon
1
980
Grafana:建立系統全知視角的捷徑
blueswen
0
330
Patterns of Patterns
denyspoltorak
0
1.4k
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
140
並行開発のためのコードレビュー
miyukiw
0
290
CSC307 Lecture 06
javiergs
PRO
0
690
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
AI巻き込み型コードレビューのススメ
nealle
2
420
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
3.9k
Featured
See All Featured
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.6k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
190
Agile that works and the tools we love
rasmusluckow
331
21k
It's Worth the Effort
3n
188
29k
Deep Space Network (abreviated)
tonyrice
0
49
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
Paper Plane (Part 1)
katiecoart
PRO
0
4.3k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
440
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
Transcript
안승규 (Seungkyu Ahn)
[email protected]
Building Infra
저는 소개하자면 • JSP&Servlet -> EJB -> Spring, Hibernate •
CVS -> Subversion -> Git • Ant -> Maven • Transactional Script -> OR Mapping, Domain Modeling • Heavy Class -> Design pattern, Refactoring • Waterfall, UML -> XP Developer : ~2010년 Engineer : 2011년~ • OpenStack • Linux • Docker, Kubernetes • Ansible 학습중 • Deep Learning • Spring boot, Frontend, IOS, Android https://www.ahnseungkyu.com
[email protected]
3 Kubernetes Architecture 3 Kube-API Master Kube-Scheduler Kube-Controller Node Kube-Proxy
Kubelet Kube-Proxy Kubelet Nginx Calico Calico Etcd
4 Kubespray 4 • Kubernetes incubator • https://github.com/kubernetes-incubator/kubespray • Ansible
5 Prerequisite 5 • Connect using ssh without password for
all node • sudo no password • Install Python - all node • swapoff • Install pip • pip install -r requirements.txt • Install ansible
6 Host file 6
7 Host file 7 k0-master01 ansible_port=22 ansible_host=k0-master01 ip=10.0.0.177 k0-node01 ansible_port=22
ansible_host=k0-node01 ip=10.0.0.178 [etcd] k0-master01 [kube-master] k0-master01 [kube-node] k0-node01 [k8s-cluster:children] kube-node kube-master
8 roles 8
9 k8s-cluster.yml 9
10 k8s-cluster.yml 10 kube_version: v1.10.4 kube_network_plugin: calico kube_service_addresses: 10.233.0.0/18 kube_pods_subnet:
10.233.64.0/18 dashboard_enabled: true helm_enabled: false istio_enabled: false local_volume_provisioner_enabled: false ingress_nginx_enabled: false
11 Install kubernetes 11 ansible-playbook -u seungkyua -b -i inventory/k0-seungkyua/hosts.ini
cluster.yml
12 kubernetes cluster 12
Kubernetes Korea User Group https://www.facebook.com/groups/k8skr/
Q&A