You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
RailsアプリケーションをKubernetes(以後、k8s)で運用できるようにするための手順を書きます。 この記事はシリーズ連載記事の第六回です。 第一回 Docker編 第二回 Docker Compose/Dockerfile編 第三回 Kubernetes入門編 第四回 Kubernetes基礎編 第五回 Kubernetes応用編 第六回 Helm編 はじめにHelmについて簡単に紹介した後、 前回の Kubernetes応用編 で作成したマニフェストをもとにHelmチャートの作り方を説明します。 サンプルコードは全て下記のリポジトリにあります。 https://github.com/kwhrtsk/rails-k8s-demoapp 前提 macOSでの作業を前提としています。 使用したツールのバージョンなどは 初回 の記事を参照してください。 ツールのインストール手順は 第
RailsアプリケーションをKubernetes(以後、k8s)で運用できるようにするための手順を書きます。 この記事はシリーズ連載記事の第五回です。 第一回 Docker編 第二回 Docker Compose/Dockerfile編 第三回 Kubernetes入門編 第四回 Kubernetes基礎編 第五回 Kubernetes応用編 第六回 Helm編 前回のKubernetes基礎編では、 Step1として第2回Docker Compose/Dockerfile編 のdocker-compose-preview.ymlに相当する構成をDeployment, Service, ConfigMap, Secretの4種のAPIオブジェクトで記述しました。 マニフェストファイル一式はサンプルコードの k8s/manifests-step1/ ディレクトリにあります。 この構成には下記
RailsアプリケーションをKubernetes(以後、k8s)で運用できるようにするための手順を書きます。 この記事はシリーズ連載記事の第四回です。 第一回 Docker編 第二回 Docker Compose/Dockerfile編 第三回 Kubernetes入門編 第四回 Kubernetes基礎編 第五回 Kubernetes応用編 第六回 Helm編 今回は以下のサンプルアプリケーションをminikubeにデプロイするためのマニフェストや手順について説明します。 https://github.com/kwhrtsk/rails-k8s-demoapp 前提 macOSでの作業を前提としています。 使用したツールのバージョンなどは 初回 の記事を参照してください。 ツールのインストール手順は 前回 の記事を参照してください。 準備まずサンプルアプリのコードをチェックアウトしてmi
以降の節で順にこれらのコマンドの使い方を説明します。見出しの括弧は旧コマンドです。 また、各節の終わりにリファレンスへのリンクを置いていますが、 少なくとも本稿の執筆時点においては旧コマンドの方が詳細に書かれているので、必要に応じてそちらも参照してください。 なお日本語版のドキュメントにはまだ新コマンド版のリファレンスはありません。 シェルの補完についてdockerのサブコマンドは、 861162a44 のようなハッシュ値や、 romantic_neumann のようにランダムな英単語の組み合わせで自動生成されたコンテナ名をパラメータとして受け取ります。 Docker for Macにはbashやzshでコマンドの補完を行うためのスクリプトが同梱されていますが、 ただインストールするだけでは有効になりません。 補完のための設定については別に記事を書いたのでこちらを参照してください。 bas
RailsアプリケーションをKubernetes(以後、k8s)で運用できるようにするための手順を書きます。 この記事はシリーズ連載記事の第三回です。 第一回 Docker編 第二回 Docker Compose/Dockerfile編 第三回 Kubernetes入門編 第四回 Kubernetes基礎編 第五回 Kubernetes応用編 第六回 Helm編 今回は下記について書きます。 最小限のk8s入門 minikubeの使い方 kubectlコマンドのチュートリアル 前提 macOSでの作業を前提としています。 使用したツールのバージョンなどは 初回 の記事を参照してください。 はじめにKubernetesには膨大な機能があるので、最初から汎用的な使い方を学ぼうとすると挫折しがちです。 このドキュメントでは、紹介する機能や概念を「初心者がRailsアプリを動かすために必要な機能」
RailsアプリケーションをKubernetes(以後、k8s)で運用できるようにするための手順を書きます。 この記事はシリーズ連載記事の第二回です。 第一回 Docker編 第二回 Docker Compose/Dockerfile編 第三回 Kubernetes入門編 第四回 Kubernetes基礎編 第五回 Kubernetes応用編 第六回 Helm編 今回は下記について書きます。 最小限のDocker Compose入門 Docker Composeを使った各種ミドルウェアのインストールと管理 RailsアプリケーションのDockerイメージの作り方 Docker Composeによるローカルプレビュー環境の構築 サンプルアプリケーション簡単なRailsアプリを例に、Docker Composeの使い方やDockerfileの書き方を説明します。 このサンプルアプリrails-
Kubernetes用VMイメージの作成 Packerを使う Kubernetesクラスタの構築がしやすいよう、あらかじめ主要なパッケージがインストールおよびセットアップされているOpenStackのVMイメージをPackerで作成します(図3)。 Packerを使い、etcdに関するパッケージなど全てのVMで共通で使用するパッケージは事前にイメージに取り込みます。 こうすることで、VMを立ち上げた初期状態でKubernetesを構築するために、ある程度準備された環境が提供され、後のデプロイ作業を効率化します。 図3. PackerによるKubernetes用VM作成 Packerの設定とイメージ作成 OpenStackに上がっているVMイメージをベースにKubernetes用のイメージを生成します。 手元にイメージをダウンロードする必要はありません。 JSON形式の設定ファイルに変数(v
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く