File tree Expand file tree Collapse file tree 7 files changed +31
-54
lines changed
access-application-cluster Expand file tree Collapse file tree 7 files changed +31
-54
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
reviewers :
3
3
title : リソースクォータ
4
- content_template : templates/ concept
4
+ content_type : concept
5
5
weight : 10
6
6
---
7
7
8
- {{% capture overview %}}
8
+ <!-- overview -->
9
9
10
10
複数のユーザーやチームが決められた数のノードを持つクラスターを共有しているとき、1つのチームが公平に使えるリソース量を超えて使用するといった問題が出てきます。
11
11
12
12
リソースクォータはこの問題に対処するための管理者向けツールです。
13
13
14
- {{% /capture %}}
15
14
16
15
17
- {{% capture body %}}
16
+ <!-- body -->
18
17
19
18
` ResourceQuota ` オブジェクトによって定義されるリソースクォータは、名前空間ごとの総リソース消費を制限するための制約を提供します。リソースクォータは同じ名前空間のクラスター内でタイプごとに作成できるオブジェクト数や、プロジェクト内のリソースによって消費されるコンピュートリソースの総量を制限できます。
20
19
@@ -547,10 +546,8 @@ plugins:
547
546
548
547
[リソースクォータの使用方法の例](/docs/tasks/administer-cluster/quota-api-object/)を参照してください。
549
548
550
- {{% /capture %}}
551
549
552
- {{% capture whatsnext %}}
550
+ # # {{% heading " whatsnext" %}}
553
551
554
552
さらなる情報は[クォータの design doc](https://git.k8s.io/community/contributors/design-proposals/resource-management/admission_control_resource_quota.md)を参照してください。
555
553
556
- {{% /capture %}}
Original file line number Diff line number Diff line change @@ -4,12 +4,11 @@ content_type: concept
4
4
weight : 40
5
5
---
6
6
7
- {{% capture overview %}}
7
+ <!-- overview -->
8
8
このページでは、Initコンテナについて概観します。Initコンテナとは、{{< glossary_tooltip text="Pod" term_id="pod" >}}内でアプリケーションコンテナの前に実行される特別なコンテナです。
9
9
Initコンテナにはアプリケーションコンテナのイメージに存在しないセットアップスクリプトやユーティリティーを含めることができます。
10
10
11
11
Initコンテナは、Podの仕様のうち` containers ` という配列(これがアプリケーションコンテナを示します)と並べて指定します。
12
- {{% /capture %}}
13
12
14
13
<!-- body -->
15
14
## Initコンテナを理解する {#understanding-init-containers}
@@ -246,7 +245,7 @@ Podレベルのコントロールグループ(cgroups)は、スケジュー
246
245
* ` restartPolicy ` が` Always ` と設定されているPod内の全てのコンテナが停止され、再起動が行われた場合。およびガーベージコレクションによりInitコンテナの完了記録が失われた場合。
247
246
248
247
249
- {{% capture whatsnext %}}
248
+ ## {{% heading " whatsnext" %}}
250
249
251
250
* [ Initコンテナを含むPodの作成] ( /docs/tasks/configure-pod-container/configure-pod-initialization/#creating-a-pod-that-has-an-init-container ) 方法について学ぶ。
252
251
* [ Initコンテナのデバッグ] ( /ja/docs/tasks/debug-application-cluster/debug-init-containers/ ) を行う方法について学ぶ。
Original file line number Diff line number Diff line change 1
1
---
2
2
title : kubectlの概要
3
- content_template : templates/ concept
3
+ content_type : concept
4
4
weight : 20
5
5
card :
6
6
name : reference
7
7
weight : 20
8
8
---
9
9
10
- {{% capture overview %}}
10
+ <!-- overview -->
11
11
` kubectl ` は、Kubernetesクラスターを制御するためのコマンドラインツールです。` kubectl ` は、` $HOME/.kube ` ディレクトリにある` config ` という名前のファイルを探します。他の[ kubeconfig] ( /docs/concepts/configuration/organize-cluster-access-kubeconfig/ ) ファイルは、` KUBECONFIG ` 環境変数を設定するか、[ ` --kubeconfig ` ] ( /docs/concepts/configuration/organize-cluster-access-kubeconfig/ ) フラグを設定することで指定できます。
12
12
13
13
この概要では、` kubectl ` の構文を扱い、コマンド操作を説明し、一般的な例を示します。サポートされているすべてのフラグやサブコマンドを含め、各コマンドの詳細については、[ kubectl] ( /docs/reference/generated/kubectl/kubectl-commands/ ) リファレンスドキュメントを参照してください。インストール方法については、[ kubectlのインストールおよびセットアップ] ( /ja/docs/tasks/kubectl/install/ ) をご覧ください。
14
14
15
- {{% /capture %}}
16
15
17
- {{% capture body %}}
16
+ <!-- body -->
18
17
19
18
## 構文
20
19
@@ -457,10 +456,8 @@ Current user: plugins-user
457
456
458
457
プラグインについてより詳しく知りたい場合は、[ example cli plugin] ( https://github.com/kubernetes/sample-cli-plugin ) をご覧ください。
459
458
460
- {{% /capture %}}
461
459
462
- {{% capture whatsnext %}}
460
+ ## {{% heading " whatsnext" %}}
463
461
464
462
[ kubectl] ( /docs/reference/generated/kubectl/kubectl-commands/ ) を使い始めてください。
465
463
466
- {{% /capture %}}
Original file line number Diff line number Diff line change 1
1
---
2
2
title : Web UI (Dashboard)
3
- content_template : templates/ concept
3
+ content_type : concept
4
4
weight : 10
5
5
card :
6
6
name : tasks
7
7
weight : 30
8
8
title : Web UIダッシュボードを使用する
9
9
---
10
10
11
- {{% capture overview %}}
11
+ <!-- overview -->
12
12
13
13
ダッシュボードは、WebベースのKubernetesユーザーインターフェイスです。ダッシュボードを使用して、コンテナ化されたアプリケーションをKubernetesクラスターにデプロイしたり、コンテナ化されたアプリケーションをトラブルシューティングしたり、クラスターリソースを管理したりすることができます。ダッシュボードを使用して、クラスター上で実行されているアプリケーションの概要を把握したり、個々のKubernetesリソース(Deployments、Jobs、DaemonSetsなど)を作成または修正したりすることができます。たとえば、Deploymentのスケール、ローリングアップデートの開始、Podの再起動、デプロイウィザードを使用した新しいアプリケーションのデプロイなどが可能です。
14
14
15
15
ダッシュボードでは、クラスター内のKubernetesリソースの状態や、発生した可能性のあるエラーに関する情報も提供されます。
16
16
17
17
![ Kubernetes Dashboard UI] ( /images/docs/ui-dashboard.png )
18
18
19
- {{% /capture %}}
20
19
21
20
22
- {{% capture body %}}
21
+ <!-- body -->
23
22
24
23
## ダッシュボードUIのデプロイ
25
24
@@ -158,10 +157,8 @@ Podのリストと詳細ページは、ダッシュボードに組み込まれ
158
157
159
158
![ Logs viewer] ( /images/docs/ui-dashboard-logs-view.png )
160
159
161
- {{% /capture %}}
162
160
163
- {{% capture whatsnext %}}
161
+ ## {{% heading " whatsnext" %}}
164
162
165
163
詳細については[ Kubernetes Dashboardプロジェクトページ] ( https://github.com/kubernetes/dashboard ) をご覧ください。
166
164
167
- {{% /capture %}}
Original file line number Diff line number Diff line change 1
1
---
2
2
title : Liveness Probe、Readiness ProbeおよびStartup Probeを使用する
3
- content_template : templates/ task
3
+ content_type : task
4
4
weight : 110
5
5
---
6
6
7
- {{% capture overview %}}
7
+ <!-- overview -->
8
8
9
9
このページでは、Liveness Probe、Readiness ProbeおよびStartup Probeの使用方法について説明します。
10
10
@@ -23,15 +23,13 @@ Readiness Probeによるチェックを無効にし、これらがアプリケ
23
23
例えば、これを起動が遅いコンテナの起動チェックとして使用することで、起動する前にkubeletによって
24
24
強制終了されることを防ぐことができます。
25
25
26
- {{% /capture %}}
27
26
28
- {{% capture prerequisites %}}
27
+ ## {{% heading " prerequisites" %}}
29
28
30
29
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
31
30
32
- {{% /capture %}}
33
31
34
- {{% capture steps %}}
32
+ <!-- steps -->
35
33
36
34
## コマンド実行によるLiveness Probeを定義する {#define-a-liveness-command}
37
35
@@ -322,9 +320,8 @@ HTTPによるProbeの場合、kubeletは指定したパスとポートに対す
322
320
TCPによるProbeの場合、kubeletはPodの中ではなく、ノードに対してコネクションを確立するProbeを実行します。
323
321
kubeletはServiceの名前を解決できないため、`host`パラメーター内でServiceの名前を使用することはできません。
324
322
325
- {{% /capture %}}
326
323
327
- {{% capture whatsnext %}}
324
+ # # {{% heading " whatsnext" %}}
328
325
329
326
* [Container Probes](/ja/docs/concepts/workloads/pods/pod-lifecycle/#container-probes)についてもっと学ぶ
330
327
@@ -334,4 +331,3 @@ kubeletはServiceの名前を解決できないため、`host`パラメーター
334
331
* [Container](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#container-v1-core)
335
332
* [Probe](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#probe-v1-core)
336
333
337
- {{% /capture %}}
Original file line number Diff line number Diff line change 1
1
---
2
2
title : Podを構成してConfigMapを使用する
3
- content_template : templates/ task
3
+ content_type : task
4
4
weight : 150
5
5
card :
6
6
name : tasks
7
7
weight : 50
8
8
---
9
9
10
- {{% capture overview %}}
10
+ <!-- overview -->
11
11
ConfigMapを使用すると、設定をイメージのコンテンツから切り離して、コンテナ化されたアプリケーションの移植性を維持できます。このページでは、ConfigMapを作成し、ConfigMapに保存されているデータを使用してPodを構成する一連の使用例を示します。
12
12
13
- {{% /capture %}}
14
13
15
- {{% capture prerequisites %}}
14
+ ## {{% heading " prerequisites" %}}
16
15
17
16
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
18
17
19
- {{% /capture %}}
20
18
21
- {{% capture steps %}}
19
+ <!-- steps -->
22
20
23
21
24
22
## ConfigMapを作成する
@@ -557,7 +555,7 @@ kubectl create -f https://kubernetes.io/examples/configmap/configmap-multikeys.y
557
555
558
556
# ## ConfigMapに保存されているデータをボリュームに入力する
559
557
560
- ConfigMap名をPod specificationの`volumes`セクション配下に追加します。
558
+ ConfigMap名をPod specificationの`volumes`セクション配下に追加します。
561
559
これによりConfigMapデータが`volumeMounts.mountPath`で指定されたディレクトリに追加されます (このケースでは、`/etc/config`に)。`command`セクションはConfigMapのキーに合致したディレクトリファイルを名前別でリスト表示します。
562
560
563
561
{{< codenew file="pods/pod-configmap-volume.yaml" >}}
614
612
ConfigMapを[subPath](/docs/concepts/storage/volumes/#using-subpath)ボリュームとして利用するコンテナはConfigMapの更新を受け取りません。
615
613
{{< /note >}}
616
614
617
- {{% /capture %}}
618
615
619
- {{% capture discussion %}}
616
+ <!-- discussion -->
620
617
621
618
# # ConfigMapとPodsを理解する
622
619
@@ -666,9 +663,7 @@ data:
666
663
667
664
- {{< glossary_tooltip text="static pods" term_id="static-pod" >}}はKubeletがサポートしていないため、ConfigMapに使用できません。
668
665
669
- {{% /capture %}}
670
666
671
- {{% capture whatsnext %}}
667
+ # # {{% heading " whatsnext" %}}
672
668
* 実践例[Configuring Redis using a ConfigMap](/docs/tutorials/configuration/configure-redis-using-configmap/)を続けて読む。
673
669
674
- {{% /capture %}}
Original file line number Diff line number Diff line change 1
1
---
2
2
title : コンテナの環境変数の定義
3
- content_template : templates/ task
3
+ content_type : task
4
4
weight : 20
5
5
---
6
6
7
- {{% capture overview %}}
7
+ <!-- overview -->
8
8
9
9
このページでは、Kubernetes Podでコンテナの環境変数を定義する方法を説明します。
10
10
11
- {{% /capture %}}
12
11
13
12
14
- {{% capture prerequisites %}}
13
+ ## {{% heading " prerequisites" %}}
15
14
16
15
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
17
16
18
- {{% /capture %}}
19
17
20
18
21
- {{% capture steps %}}
19
+ <!-- steps -->
22
20
23
21
## コンテナの環境変数を定義する {#define-an-environment-variable-for-a-container}
24
22
@@ -102,12 +100,10 @@ spec:
102
100
103
101
作成されると、コンテナ上で` echo Warm greetings to The Most Honorable Kubernetes` というコマンドが実行されます。
104
102
105
- {{% /capture %}}
106
103
107
- {{% capture whatsnext %}}
104
+ # # {{% heading " whatsnext" %}}
108
105
109
106
* [環境変数](/docs/tasks/inject-data-application/environment-variable-expose-pod-information/)の詳細
110
107
* [Secretを環境変数として使用する](/docs/concepts/configuration/secret/# using-secrets-as-environment-variables)詳細
111
108
* [EnvVarSource](/docs/reference/generated/kubernetes-api/{{< param " version" > }}/# envvarsource-v1-core)をご覧ください。
112
109
113
- {{% /capture %}}
You can’t perform that action at this time.
0 commit comments