resolve conflict

This commit is contained in:
inductor
2020-06-15 02:59:15 +09:00
2451 changed files with 127381 additions and 564546 deletions
+8 -7
View File
@@ -2,16 +2,16 @@
title: チュートリアル
main_menu: true
weight: 60
content_template: templates/concept
content_type: concept
---
{{% capture overview %}}
<!-- overview -->
本セクションにはチュートリアルが含まれています。チュートリアルでは、単一の[タスク](/docs/tasks/)よりも大きな目標を達成する方法を示します。通常、チュートリアルにはいくつかのセクションがあり、各セクションには一連のステップがあります。各チュートリアルを進める前に、後で参照できるように[標準化された用語集](/docs/reference/glossary/)ページをブックマークしておくことをお勧めします。
{{% /capture %}}
{{% capture body %}}
<!-- body -->
## 基本
@@ -59,10 +59,11 @@ content_template: templates/concept
* [Source IPを使う](/docs/tutorials/services/source-ip/)
{{% /capture %}}
{{% capture whatsnext %}}
## {{% heading "whatsnext" %}}
チュートリアルを書きたい場合は、[ページテンプレートの使用](/docs/contribute/style/page-templates/)を参照し、チュートリアルのページタイプとチュートリアルテンプレートについてご確認ください。
{{% /capture %}}
@@ -1,15 +1,16 @@
---
title: ConfigMapを使ったRedisの設定
content_template: templates/tutorial
content_type: tutorial
---
{{% capture overview %}}
<!-- overview -->
本ページでは、[ConfigMapを使ったコンテナの設定](/docs/tasks/configure-pod-container/configure-pod-configmap/)に基づき、ConfigMapを使ってRedisの設定を行う実践的な例を提供します。
{{% /capture %}}
{{% capture objectives %}}
## {{% heading "objectives" %}}
* 以下の要素を含む`kustomization.yaml`ファイルを作成する:
* ConfigMapGenerator
@@ -17,18 +18,19 @@ content_template: templates/tutorial
* `kubectl apply -k ./`コマンドにてディレクトリ全体を適用する
* 設定が正しく反映されていることを確認する
{{% /capture %}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
* この例は、バージョン1.14以上での動作を確認しています。
* [ConfigMapを使ったコンテナの設定](/ja/docs/tasks/configure-pod-container/configure-pod-configmap/)を読んで理解しておいてください。
{{% /capture %}}
{{% capture lessoncontent %}}
<!-- lessoncontent -->
## 実践例: ConfigMapを使ったRedisの設定
@@ -101,10 +103,10 @@ kubectl exec -it redis redis-cli
kubectl delete pod redis
```
{{% /capture %}}
{{% capture whatsnext %}}
## {{% heading "whatsnext" %}}
* [ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/)について学ぶ
{{% /capture %}}
+15 -12
View File
@@ -1,6 +1,6 @@
---
title: Hello Minikube
content_template: templates/tutorial
content_type: tutorial
weight: 5
menu:
main:
@@ -13,7 +13,7 @@ card:
weight: 10
---
{{% capture overview %}}
<!-- overview -->
このチュートリアルでは、[Minikube](/ja/docs/setup/learning-environment/minikube)とKatacodaを使用して、Kubernetes上でシンプルなHello WorldのNode.jsアプリケーションを動かす方法を紹介します。Katacodaはブラウザで無償のKubernetes環境を提供します。
@@ -21,17 +21,19 @@ card:
[Minikubeをローカルにインストール](/ja/docs/tasks/tools/install-minikube/)している場合もこのチュートリアルを進めることが可能です。
{{< /note >}}
{{% /capture %}}
{{% capture objectives %}}
## {{% heading "objectives" %}}
* Minikubeへのhello worldアプリケーションのデプロイ
* アプリケーションの実行
* アプリケーションログの確認
{{% /capture %}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
このチュートリアルは下記のファイルからビルドされるコンテナーイメージを提供します:
@@ -41,9 +43,9 @@ card:
`docker build`コマンドについての詳細な情報は、[Dockerのドキュメント](https://docs.docker.com/engine/reference/commandline/build/)を参照してください。
{{% /capture %}}
{{% capture lessoncontent %}}
<!-- lessoncontent -->
## Minikubeクラスタの作成
@@ -70,7 +72,7 @@ Kubernetesの[*Pod*](/ja/docs/concepts/workloads/pods/pod/) は、コンテナ
1. `kubectl create` コマンドを使用してPodを管理するDeploymentを作成してください。Podは提供されたDockerイメージを元にコンテナを実行します。
```shell
kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node
kubectl create deployment hello-node --image=k8s.gcr.io/echoserver:1.4
```
2. Deploymentを確認します:
@@ -260,12 +262,13 @@ minikube stop
minikube delete
```
{{% /capture %}}
{{% capture whatsnext %}}
## {{% heading "whatsnext" %}}
* [Deploymentオブジェクト](/ja/docs/concepts/workloads/controllers/deployment/)について学ぶ.
* [アプリケーションのデプロイ](/ja/docs/tasks/run-application/run-stateless-application-deployment/)について学ぶ.
* [Serviceオブジェクト](/ja/docs/concepts/services-networking/service/)について学ぶ.
{{% /capture %}}
@@ -1,17 +1,18 @@
---
title: クラスター内のアプリケーションにアクセスするために外部IPアドレスを公開する
content_template: templates/tutorial
content_type: tutorial
weight: 10
---
{{% capture overview %}}
<!-- overview -->
このページでは、外部IPアドレスを公開するKubernetesのServiceオブジェクトを作成する方法を示します。
{{% /capture %}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
* [kubectl](/ja/docs/tasks/tools/install-kubectl/)をインストールしてください。
@@ -19,19 +20,20 @@ weight: 10
* Kubernetes APIサーバーと通信するために、`kubectl`を設定してください。手順については、各クラウドプロバイダーのドキュメントを参照してください。
{{% /capture %}}
{{% capture objectives %}}
## {{% heading "objectives" %}}
* 5つのインスタンスで実際のアプリケーションを起動します。
* 外部IPアドレスを公開するServiceオブジェクトを作成します。
* 起動中のアプリケーションにアクセスするためにServiceオブジェクトを使用します。
{{% /capture %}}
{{% capture lessoncontent %}}
<!-- lessoncontent -->
## 5つのPodで起動しているアプリケーションへのServiceの作成
@@ -134,10 +136,11 @@ kubectl apply -f https://k8s.io/examples/service/load-balancer-example.yaml
Hello Kubernetes!
{{% /capture %}}
{{% capture cleanup %}}
## {{% heading "cleanup" %}}
Serviceを削除する場合、次のコマンドを実行します:
@@ -147,10 +150,11 @@ Deployment、ReplicaSet、およびHello Worldアプリケーションが動作
kubectl delete deployment hello-world
{{% /capture %}}
{{% capture whatsnext %}}
## {{% heading "whatsnext" %}}
[connecting applications with services](/docs/concepts/services-networking/connect-applications-service/)にて詳細を学ぶことができます。
{{% /capture %}}