Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Rancherとプロキシの戦い
Search
CapsuleCloud
January 25, 2018
Technology
820
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rancherとプロキシの戦い
【大阪第3回】コンテナ管理ツール Rancher勉強会 にて発表したプレゼンです。
イベントURL
https://rancherjp.connpass.com/event/73019/
CapsuleCloud
January 25, 2018
More Decks by CapsuleCloud
See All by CapsuleCloud
OpenFaaS x Rancher x Azure
capsulecloud
0
400
OpenFaaS x RancherのDeveloper Experience
capsulecloud
0
390
無料ドメインで Rancher/Kubernetes
capsulecloud
1
780
Kubernetesはじめました
capsulecloud
1
520
Rancher x OpenFaas x GCP
capsulecloud
0
690
OpenFaaS x Rancher が気づかせてくれたこと
capsulecloud
0
1.5k
Rancher!オンプレ!DevOps!
capsulecloud
2
530
Rancherで構築するDPP(Data Processing Platform)
capsulecloud
2
1.2k
Rancherで構築するオンプレとクラウドのハイブリッド環境
capsulecloud
1
910
Other Decks in Technology
See All in Technology
デザインレビューは自動化できるのか?─ Flutter × Figma で UI 品質保証を考える
techiro
2
650
AI時代のエンジニアの情報発信〜個人の発信を組織の力に変える〜
ryo_kawamata
0
990
AI時代の開発はウォーターフォールに回帰する? / development-with-ai-back-to-wf
okamototakuyasr2
0
160
Microsoft のサポート ライフサイクルを理解する
murachiakira
PRO
0
240
AIテスト自動化と評価駆動開発EDD
happysamurai294
0
110
Devin プロモコードの受け取りと適用(2026.10.27)
kinopeee
1
730
外国人エンジニアがVueプロトタイプで仕様を合わせている話 / Vue Fes Japan 2026 LT
eluwing
0
310
渡米前の準備を制す!re:Invent 2026徹底準備術 / The Ultimate Preparation Guide for re:Invent 2026
yuj1osm
1
430
【Oracle AI SPOTLIGHT ウェビナー】事例から見る!なぜOCIが選ばれたのか ― AI時代のクラウド戦略を紐解く ―
oracle4engineer
PRO
1
130
ひとりで始めた AI駆動開発、チームに広げて何が変わったのか
kenichiodo
1
160
Vue.jsのGitHubから学ぶ意思決定
yut0naga1_fa
1
340
(swiftc) NonCopyableとライフタイム修飾子
teamhimeh
0
160
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
Six Lessons from altMBA
skipperchong
29
4.5k
Optimizing for Happiness
mojombo
378
71k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
290
The Language of Interfaces
destraynor
162
27k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Into the Great Unknown - MozCon
thekraken
41
2.8k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
68k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
360
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
500
Transcript
Rancherとプロキシの戦い
自己紹介 株式会社スーパーソフトウエア・技術部(入社11年目) 井上 健太郎 妻(薬剤師 ※このあとの流れに効いてきます) 子(4歳&1歳)
ジェネリック医薬品はご存知ですか? 新薬と同じ成分・効能をもつ価格の安いお薬です。
会社における私のポジションを例える 新薬(先発品)メーカー 研究開発を行い、新しいものを生み出し製造。 =先ほど登壇した山澤はコッチ ジェネリック(後発品)メーカー 自身で研究開発は行わず、特許の切れた新薬をパクって製造。 (だいぶ語弊あるので聞き流してください...) =私はコッチ!!
2017年末の出来事 顧客:「CIツールは前進プロジェクトと同じく Jenkins使うけど、イン ストールとか面倒だし、ぼちぼち Docker使かおうかな。」 以下、()内は私の心の声です。 私: (ここや!!) 「Dockerやるなら管理が煩雑化するのもアレなんで Rancher使っ ていきましょう!」
(Dockerも使ったことない俺が言うのもなんやけど ...) 「オーケストレータは今後の見通し考慮して Cattleではなく Kubernetesでいったんいきますね!」 (どっちも知らんのによう言うで ...)」 「とりあえず説明するよりこっちでちゃちゃっと環境作っちゃい ますね!」 (やったことないくせに?)
Rancher使って、Kubernetesクラスタ上で、Jenkins動かす 2017年中のぼんやりとした目標 ⇒ただ、プロキシが気がかりではある・・・
プロキシとの戦い① Dockerインストール失敗 まず、Dockerをインストールしないことには始まらないので、yumの プロキシ設定をする。 これはいつものことなので全く想定どおり! $cat /etc/yum.conf proxy=http://proxy.xxx.xxx.co.jp:port proxy_username=user proxy_password=pass
Rancherサーバーが立ち上がった ↓ マスターとミニオンもすんなり追加できた ↓ しかし、プロキシとの本当の戦いはここからだった・・・
プロキシとの戦い② Helmコマンドインストール失敗 KubernetesマスターにHelmコマンドをインストールする。 ⇒shを実行してみるも無反応。なかでcurl を連発していること に気づき、.curlrcにプロキシを設定。 ちょっとイラつきだす! $cat /root/.curlrc proxy
= http://user:
[email protected]
:port
プロキシとの戦い③ Helm初期化失敗 helm initを発行すると 「Creating/root/.helm/repository/repositories.yaml」 の場所に接続できないみたいなエラーが出て失敗。 ⇒環境変数としてプロキシを定義。 もはや、やけくそ!
そもそも・・・ 顧客は早くJenkinsを立ち上げることを要求している。 =構築に時間かかりそうならアプローチを変えるべき。 ⇒いったんcattle使ってみよう。 ⇒すんなりJenkins立ち上がりました。
結論 私がまず顧客にすべき話は、 オーケストレーター何にするかとかではなく、 プロキシ環境の弊害と対策についてでした。
JenkinsのタイムゾーンがUTCになって いるという指摘を顧客から受けて、 docker-compose.ymlを直接触らなくて も、RancherのUIから環境変数に指定し てやれば解決できますよとやって見せる と意外とウケた。 余談ですが 以上。