Skip to content

Commit 6b8d88d

Browse files
authored
Merge pull request #36700 from jzhupup/ja-ipv6
[ja] Sync use IPv6 Address Prefix Reserved for Documentation
2 parents 775bffb + 863e51c commit 6b8d88d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

content/ja/docs/concepts/services-networking/dns-pod-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ IPv6用のセットアップのためには、サーチパスとname serverは
207207
208208
```
209209
$ kubectl exec -it dns-example -- cat /etc/resolv.conf
210-
nameserver fd00:79:30::a
210+
nameserver 2001:db8:30::a
211211
search default.svc.cluster.local svc.cluster.local cluster.local
212212
options ndots:5
213213
```

content/ja/docs/tasks/network/validate-dual-stack.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ kubectl get nodes k8s-linuxpool1-34450317-0 -o go-template --template='{{range .
3232
```
3333
```
3434
10.244.1.0/24
35-
a00:100::/24
35+
2001:db8::/64
3636
```
3737

3838
IPv4ブロックとIPv6ブロックがそれぞれ1つずつ割り当てられているはずです。
@@ -44,8 +44,8 @@ kubectl get nodes k8s-linuxpool1-34450317-0 -o go-template --template='{{range .
4444
```
4545
```
4646
Hostname: k8s-linuxpool1-34450317-0
47-
InternalIP: 10.240.0.5
48-
InternalIP: 2001:1234:5678:9abc::5
47+
InternalIP: 10.0.0.5
48+
InternalIP: 2001:db8:10::5
4949
```
5050

5151
### Podアドレスの検証
@@ -57,7 +57,7 @@ kubectl get pods pod01 -o go-template --template='{{range .status.podIPs}}{{prin
5757
```
5858
```
5959
10.244.1.4
60-
a00:100::4
60+
2001:db8::4
6161
```
6262

6363
Downward APIを使用して、`status.podIPs`のfieldPath経由でPod IPを検証することもできます。次のスニペットは、Pod IPを`MY_POD_IPS`という名前の環境変数経由でコンテナ内に公開する方法を示しています。
@@ -76,7 +76,7 @@ Downward APIを使用して、`status.podIPs`のfieldPath経由でPod IPを検
7676
kubectl exec -it pod01 -- set | grep MY_POD_IPS
7777
```
7878
```
79-
MY_POD_IPS=10.244.1.4,a00:100::4
79+
MY_POD_IPS=10.244.1.4,2001:db8::4
8080
```
8181

8282
PodのIPアドレスは、コンテナ内の`/etc/hosts`にも書き込まれます。次のコマンドは、デュアルスタックのPod上で`/etc/hosts`に対してcatコマンドを実行します。出力を見ると、Pod用のIPv4およびIPv6のIPアドレスの両方が確認できます。
@@ -93,7 +93,7 @@ fe00::0 ip6-mcastprefix
9393
fe00::1 ip6-allnodes
9494
fe00::2 ip6-allrouters
9595
10.244.1.4 pod01
96-
a00:100::4 pod01
96+
2001:db8::4 pod01
9797
```
9898

9999
## Serviceの検証
@@ -155,9 +155,9 @@ metadata:
155155
app: MyApp
156156
name: my-service
157157
spec:
158-
clusterIP: fd00::5118
158+
clusterIP: 2001:db8:fd00::5118
159159
clusterIPs:
160-
- fd00::5118
160+
- 2001:db8:fd00::5118
161161
ipFamilies:
162162
- IPv6
163163
ipFamilyPolicy: SingleStack
@@ -204,7 +204,7 @@ Type: ClusterIP
204204
IP Family Policy: PreferDualStack
205205
IP Families: IPv4,IPv6
206206
IP: 10.0.216.242
207-
IPs: 10.0.216.242,fd00::af55
207+
10.0.216.242,2001:db8:fd00::af55
208208
Port: <unset> 80/TCP
209209
TargetPort: 9376/TCP
210210
Endpoints: <none>
@@ -227,6 +227,6 @@ kubectl get svc -l app=MyApp
227227
ServiceがIPv6アドレスブロックから`CLUSTER-IP`のアドレスと`EXTERNAL-IP`を割り当てられていることを検証します。その後、IPとポートを用いたServiceへのアクセスを検証することもできます。
228228

229229
```shell
230-
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
231-
my-service LoadBalancer fd00::7ebc 2603:1030:805::5 80:30790/TCP 35s
230+
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
231+
my-service LoadBalancer 2001:db8:fd00::7ebc 2603:1030:805::5 80:30790/TCP 35s
232232
```

0 commit comments

Comments
 (0)