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
GitHub、使う?使わない?
happysamurai294
0
120
Agent 活用環境の構築・運用のための AWS サービスのご紹介/agentcore-for-building-and-operating-agents
ren8k
1
280
生き様としてのSRE
hokkai7go
0
140
Draft AIエージェントの トークン消費を最小化する 8つの原則
kinopeee
6
1.9k
なぜAI時代に技術記事を書くのか?どう書くのか? 〜bunの場合〜
kworkdev
PRO
0
1.1k
自律的なチームを作るためにTechPMがやらないこと
ny7760
0
250
Deep Data Security 機能解説
oracle4engineer
PRO
3
970
AWSセキュリティで活用するAI機能
cmusudakeisuke
1
380
構造で守らせる データ・法務・セキュリティ・開発チームとつくる AI時代のデータガバナンスとデータ基盤のリアル
legalontechnologies
PRO
2
690
Flutter Webを「SDK」として配る — 50以上のゲームを支える埋め込みアーキテクチャ
masayukisuda
0
160
reInvent2026stby LT00 "Change your life!"
shinichirokawano
1
480
AI秘書と毎日働くのはもう当たり前。開発以外の業務に足りない機能をどう埋める?
minorun365
PRO
4
2k
Featured
See All Featured
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
470
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
540
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
Ethics towards AI in product and experience design
skipperchong
2
450
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
360
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.2k
Abbi's Birthday
coloredviolet
4
11k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Between Models and Reality
mayunak
4
530
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
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から環境変数に指定し てやれば解決できますよとやって見せる と意外とウケた。 余談ですが 以上。