gui&基本操作、cli編

Post on 21-Feb-2017

236 Views

Category:

Engineering

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Rancher GUI Basic and CLI Ops

Rancher Meetup Tokyo #4 Go Chiba @go_chiba

About me Go Chiba

– WorkSystem Integrator

– RolePublic/Private CloudContainer Orchestrator

– ContactTwitter: @go_chiba

What is Rancher?Rancher Catalog

AD/LDAP

Leverage existing tools:- CI/CD- Code

Repository- Monitoring

Environment 1 Environment N…Network Services Storage Services

Container Orchestration and SchedulingUser Mgmt Ops Mgmt

Environment 2

Environment 論理的なグループ (Production/Staging/ServiceA) Environment 毎にオーケストレーターを指定可能

– Cattle(Rancher 独自 ), Kubernetes, Mesos, Swarm– 追加 Stack を含めてテンプレート化することも可能

e.g.) DNS, Network, Storage...

Infrastructure コンテナ環境を利用するためのインフラの管理

Infrastructure

Catalog カタログ

– ライブラリRancher Labs 提供のカタログ

– コミュニティコミュニティサポートのカタログ

– プライベートカタログ自作のカタログ

Stack 稼働中のスタックを確認

– ユーザーユーザーが作成したスタック

– インフラストラクチャRancher で利用しているシステムスタック

Stack

コンテナ間リンクの確認 docker-compose.yml の確認

GUI なんて軟弱なインターフェース使えるか !シェルだろシェル !!

Rancher Compose docker-compose の Rancher 版Commands: create Create all services but do not start up Bring all services up start Start services logs Get service logs restart Restart services stop, down Stop services scale Scale services rm Delete services pull Pulls images for services upgrade Perform rolling upgrade between services help Shows a list of commands or help for one command

Rancher Compose しかし、痒いところに手が届かなかったり ...

– # rancher-compose rm するとスタックは残る– GUI の全てのオペレーションは不可能

• 環境 / ホストの追加• カタログの利用• 管理ホストへのログイン ...etc

Rancher CLI Rancher 管理者向け (?) の CLICommands: catalog Operations with catalogs config Setup client configuration docker Run docker CLI on a host environment, env Interact with environments events, event Displays resource change events exec Run a command on a container export Export configuration yml for a stack as a tar archive or to local files hosts, host Operations on hosts logs Fetch the logs of a container ps Show services/containers restart Restart service, container

Rancher CLI rm Delete service, container, stack, host, volume run Run services scale Set number of containers to run for a service ssh SSH into host stacks, stack Operations on stacks start, activate Start or activate service, container, host, stack stop, deactivate Stop or deactivate service, container, host, stack up Bring all services up volumes, volume Operations on volumes inspect View details for service, container, host, environment, stack, volume wait Wait for resources service, container, host, stack, machine, projectTemplate

サンプル

Question?

Thank you!

参考 さくらとコンテナの夕べ ( 第 2 回 ) Rancher/Kubernetes 入門ハンズオ

ン資料 by @zembutsuhttp://qiita.com/zembutsu/items/007617cbb00a0d554c8c

Rancher の用語を調べてみました by @ryota_hnkhttp://qiita.com/ryota_hnk/items/8b54fd56ee8b699d50ed

Rancher CLI について by @zembutsuhttp://www.slideshare.net/zembutsu/rancher-command-line-interface

top related