Skip to content

Commit 006a582

Browse files
committed
Translate tasks/configure-pod-container/assign-pods-nodes-using-node-affinity into Japanese.
1 parent 39d1db8 commit 006a582

File tree

1 file changed

+23
-30
lines changed

1 file changed

+23
-30
lines changed
Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
2-
title: Assign Pods to Nodes using Node Affinity
2+
title: Node Affinityを利用してPodをノードに割り当てる
33
min-kubernetes-server-version: v1.10
44
content_type: task
55
weight: 120
66
---
77

88
<!-- overview -->
9-
This page shows how to assign a Kubernetes Pod to a particular node using Node Affinity in a
10-
Kubernetes cluster.
9+
このページでは、Node Affinityを利用して、PodをKubernetesクラスター内の特定のノードに割り当てる方法を説明します。
1110

1211

1312
## {{% heading "prerequisites" %}}
@@ -19,35 +18,37 @@ Kubernetes cluster.
1918

2019
<!-- steps -->
2120

22-
## Add a label to a node
21+
## ノードにラベルを追加する
2322

24-
1. List the nodes in your cluster, along with their labels:
23+
1. クラスター内のノードを一覧表示して、ラベルを確認します。
2524

2625
```shell
2726
kubectl get nodes --show-labels
2827
```
29-
The output is similar to this:
28+
29+
出力は次のようになります。
3030

3131
```shell
3232
NAME STATUS ROLES AGE VERSION LABELS
3333
worker0 Ready <none> 1d v1.13.0 ...,kubernetes.io/hostname=worker0
3434
worker1 Ready <none> 1d v1.13.0 ...,kubernetes.io/hostname=worker1
3535
worker2 Ready <none> 1d v1.13.0 ...,kubernetes.io/hostname=worker2
3636
```
37-
1. Chose one of your nodes, and add a label to it:
37+
1. ノードを選択して、ラベルを追加します。
3838

3939
```shell
4040
kubectl label nodes <your-node-name> disktype=ssd
4141
```
42-
where `<your-node-name>` is the name of your chosen node.
4342

44-
1. Verify that your chosen node has a `disktype=ssd` label:
43+
ここで、`<your-node-name>`は選択したノードの名前で置換します。
44+
45+
1. 選択したノードに`disktype=ssd`ラベルがあることを確認します。
4546

4647
```shell
4748
kubectl get nodes --show-labels
4849
```
4950

50-
The output is similar to this:
51+
出力は次のようになります。
5152

5253
```
5354
NAME STATUS ROLES AGE VERSION LABELS
@@ -56,67 +57,59 @@ Kubernetes cluster.
5657
worker2 Ready <none> 1d v1.13.0 ...,kubernetes.io/hostname=worker2
5758
```
5859

59-
In the preceding output, you can see that the `worker0` node has a
60-
`disktype=ssd` label.
60+
この出力を見ると、`worker0`ノードに`disktype=ssd`というラベルが追加されたことがわかります。
6161

62-
## Schedule a Pod using required node affinity
62+
## required node affinityを使用してPodをスケジューリングする
6363

64-
This manifest describes a Pod that has a `requiredDuringSchedulingIgnoredDuringExecution` node affinity,`disktype: ssd`.
65-
This means that the pod will get scheduled only on a node that has a `disktype=ssd` label.
64+
以下に示すマニフェストには、`requiredDuringSchedulingIgnoredDuringExecution``disktype: ssd`というnode affinityを使用したPodが書かれています。このように書くと、Podは`disktype=ssd`というラベルを持つノードにだけスケジューリングされるようになります。
6665

6766
{{< codenew file="pods/pod-nginx-required-affinity.yaml" >}}
6867

69-
1. Apply the manifest to create a Pod that is scheduled onto your
70-
chosen node:
68+
1. マニフェストを適用して、選択したノード上にスケジューリングされるPodを作成します。
7169

7270
```shell
7371
kubectl apply -f https://k8s.io/examples/pods/pod-nginx-required-affinity.yaml
7472
```
7573

76-
1. Verify that the pod is running on your chosen node:
74+
1. Podが選択したノード上で実行されていることを確認します。
7775

7876
```shell
7977
kubectl get pods --output=wide
8078
```
8179

82-
The output is similar to this:
80+
出力は次のようになります。
8381

8482
```
8583
NAME READY STATUS RESTARTS AGE IP NODE
8684
nginx 1/1 Running 0 13s 10.200.0.4 worker0
8785
```
8886

89-
## Schedule a Pod using preferred node affinity
87+
## preferred node affinityを使用してPodをスケジューリングする
9088

91-
This manifest describes a Pod that has a `preferredDuringSchedulingIgnoredDuringExecution` node affinity,`disktype: ssd`.
92-
This means that the pod will prefer a node that has a `disktype=ssd` label.
89+
以下に示すマニフェストには、`preferredDuringSchedulingIgnoredDuringExecution``disktype: ssd`というnode affinityを使用したPodが書かれています。このように書くと、Podは`disktype=ssd`というラベルを持つノードに優先的にスケジューリングされるようになります。
9390

9491
{{< codenew file="pods/pod-nginx-preferred-affinity.yaml" >}}
9592

96-
1. Apply the manifest to create a Pod that is scheduled onto your
97-
chosen node:
93+
1. マニフェストを適用して、選択したノード上にスケジューリングされるPodを作成します。
9894

9995
```shell
10096
kubectl apply -f https://k8s.io/examples/pods/pod-nginx-preferred-affinity.yaml
10197
```
10298

103-
1. Verify that the pod is running on your chosen node:
99+
1. Podが選択したノード上で実行されていることを確認します。
104100

105101
```shell
106102
kubectl get pods --output=wide
107103
```
108104

109-
The output is similar to this:
105+
出力は次のようになります。
110106

111107
```
112108
NAME READY STATUS RESTARTS AGE IP NODE
113109
nginx 1/1 Running 0 13s 10.200.0.4 worker0
114110
```
115111

116-
117-
118112
## {{% heading "whatsnext" %}}
119113

120-
Learn more about
121-
[Node Affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity).
114+
[Node Affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity)についてさらに学ぶ。
122115

0 commit comments

Comments
 (0)