質問編集履歴

1

アドバイスを受けて追記

2020/10/25 01:17

投稿

nakao107107
nakao107107

スコア43

test CHANGED
File without changes
test CHANGED
@@ -241,3 +241,41 @@
241
241
 
242
242
 
243
243
  以上、よろしくお願いいたします
244
+
245
+
246
+
247
+
248
+
249
+ ## 追記
250
+
251
+ アドバイスを受けて追加で検証を行いました
252
+
253
+ 1. pod名の一覧、全部のコンテナが正常に起動しているか
254
+
255
+ => 以下のコマンドで検証し、全てのpodが正常稼働していると判断
256
+
257
+ ``` bash
258
+
259
+ kubectl get pods
260
+
261
+ NAME READY STATUS RESTARTS AGE
262
+
263
+ mysql-pod 1/1 Running 0 2d1h
264
+
265
+ wordpress-pod 1/1 Running 0 2d1h
266
+
267
+ ```
268
+
269
+
270
+
271
+ 2. wordpress containerから、mysqlへの接続が実行できるか
272
+
273
+ => 以下のコマンドで検証し、接続は失敗しているがホストの認識は正しくできていると判断
274
+
275
+ ``` bash
276
+
277
+ curl mysql-service:3306
278
+
279
+ curl: (7) Failed to connect to mysql-service port 3306: Connection refused
280
+
281
+ ```