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
KubernetesでCLIを快適を使いたい
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Show Murai
November 15, 2017
2.3k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
KubernetesでCLIを快適を使いたい
Show Murai
November 15, 2017
More Decks by Show Murai
See All by Show Murai
システムを構築するときに 気をつける10のこと
showmurai
4
140
監視入門!監視で困ってませんか?
showmurai
0
350
AWS vs GCP 今から作るならどちらがいいの 20180330
showmurai
1
1.4k
システムを構築するときに 気をつける10のこと
showmurai
0
1.8k
AWS vs GCP 今から作る ならどっちがいいの!?
showmurai
52
84k
データサイエンスのためのAWSの使い方入門
showmurai
1
1k
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
201
75k
Docker and Python
trallard
47
4.1k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.5k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
230
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
290
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
500
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
690
The Limits of Empathy - UXLibs8
cassininazir
1
590
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
400
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
210
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
520
Transcript
KubernetesͰCLIΛշదΛ͍͍ͨ αΠόʔΤʔδΣϯτͱ͘͞ΒΠϯλʔωοτͷΠϯϑϥஊٛ αΠόʔΤʔδΣϯτ ΞυςΫελδΦ ଜҪ ᠳଠ࿕ https://connpass.com/event/70903/
ࣗݾհ • ଜҪ ᠳଠ࿕ • @Show_murai • גࣜձࣾαΠόʔΤʔδΣϯτ ΞυςΫελδΦ ΠϯϑϥνʔϜ
Πϯϑϥ ϦʔυΤϯδχΞ ※ຊͷൃදݸਓͷݟղͰ͋Γɺॴଐ͢Δ৫ͷެࣜݟղͰ͋Γ·ͤΜ
ࣗݾհ • ژग़ • αΠόʔΤʔδΣϯτ த్ೖࣾ • ϓϩμΫτ(ϓϩδΣΫτ)͖ͷΠϯϑϥ • झຯཱྀߦɺϑοταϧ
• ࢂഊ͠·ͨ͠
Kubernetes(k8s) ͬͯ·͔͢!?
࠷͍ۙ࢝Ί·ͨ͠
KubernetesΛͬͱ ศརʹͯ͘͠ΕΔcliπʔϧͷհ
context/nemespace ΛΓସ͍͑ͨ
kubectx
kubectxͷศརͳͱ͜Ζ • MacͳΒbrewͰҰൃΠϯετʔϧ • contextͷrename͕Ͱ͖Δ • ิͰcontext/nsͷϦετͳΜͯݟͳ͍͍ͯ͘
contextͷΓସ͑
namespaceͷΓସ͑
ͪͳΈʹ
ShellʹCurrentͷ context/namespaceΛදࣔ͢Δ
zsh-kubectl-prompt
zshʹදࣔͤ͞Δ • ΦϖϛεΛ͙ͷʹॏཁ • brewͰҰൃΠϯετʔϧ • zshrcʹઃఆΛՃ ͜Εˠ
ίϯςφϩά؆୯ʹݟ͍ͨ
stern
kubectl get pods kubectl logs -f PODS ·ͩͬͯ·͔͢ʁ
stern PODS ͜ΕͰͰ͖·͢
sternͷ͕࠷ߴͳͱ͜Ζ • “stern KEYWORD” ͢Δ͚ͩ • ݕࡧ͍ͨ͠ϫʔυΛೖΕΔ͚ͩ (શҰக͡Όͳͯ͘Α͍ • Podຖʹ৭͚͞Εͯͯݟ͍͢
• ϒϩάͰେઈࢍ • kubernetes͍શһ stern Λಋೖ͖͢
͋Γ͕ͱ͏͍͟͝·ͨ͠
Kubernetes Γ͍ͨͻͱ ϚδͰઈࢍืूத ※ΦϑΟεݟֶ͚ͩͰେৎͰ͢ αΠόʔΤʔδΣϯτ ΞυςΫελδΦ https://adtech.cyberagent.io/