ページの先頭行へ戻る
Enterprise Service Development Platform V1.2.0 トラブルシューティング集
FUJITSU Software

1.18 Kubernetesのインストールに失敗します

■事象

play_small_kubernetes.ymlの実行時、下記のようにTASK [common/docker : Install docker]でdockerのインストールに失敗した後、 TASK[k8s/apply_patch_for_coredns]がリトライ後、実行に失敗します。

TASK [common/docker : Install docker]
fatal: [172.101.9.108]: FAILED! => {"changed": false, "msg": "No package matching 'docker' found available, installed or updated", "rc": 126, "results": ["No package matching 'docker' found available, installed or updated"]}
changed: [172.101.3.173]
                
TASK [k8s/apply_patch_for_coredns : Ensure all coredns are running on the nodes]
FAILED - RETRYING: Ensure all coredns are running on the nodes (1 retries left).
fatal: [172.101.3.173]: FAILED! => {"attempts": 120, "changed": true, "cmd": "kubectl -n kube-system get pods  --field-selector spec.nodeName!=ip-172-101-3-173.ap-northeast-1.compute.internal,status.phase=Running  -l k8s-app=kube-dns --ignore-not-found=true --no-headers=true | wc -l  \n", "delta": "0:00:00.086271", "end": "2020-02-13 02:37:16.039446", "rc": 0, "start": "2020-02-13 02:37:15.953175", "stderr": "", "stderr_lines": [], "stdout": "0", "stdout_lines": ["0"]}
            

■原因

リポジトリが参照できず、Dockerのインストールに失敗しているため、Kubernetesのインストールに失敗しました。

■対処方法

Dockerのインストールに必要なリポジトリが参照できるように、リポジトリを有効にしてください。 有効とするリポジトリ等の詳細については、「インストールガイド」-「前提条件」を参照してください。