2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AzureのkubernetesでPodが「ContainerCreating」のままで起動しないときにした対処

Last updated at Posted at 2019-02-14

kubernetesでpodを起動するときに「ContainerCreating」のままで起動しないことがあった。
何度か対象Podをdelete → applyしても解決しなかったときの、ひとまずの対処法をメモ。

NAME                         READY   STATUS               RESTARTS   AGE
pod/my-pod-f9bf58dbb-lpr96   0/2     ContainerCreating    1          13m
pod/my-pod-f9bf58dbb-hwlxc   2/2     Running              0          47m
pod/my-pod-f9bf58dbb-lrkcv   2/2     Running              0          47m
pod/my-pod-f9bf58dbb-tr69q   2/2     Running              0          47m
pod/my-pod-f9bf58dbb-zs9vz   2/2     Running              0          47m

ひとまずdescribeで確認

kubectl describe pods -n <ネームスペース名>

該当podの情報を見ると

kubelet, k8s-agentpool1-45055478-0
Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "my-pod-f9bf58dbb-lpr96": Error response from daemon: grpc: the connection is unavailable

ふむふむ

Error response from daemon: grpc: the connection is unavailable

いろいろ文献を調べてみたが、情報が少なく根本原因がわからない。

何度か「delete → apply」を繰り返してみたが、状況は変わらず。

ひとまずの対策

対象podが乗っているagentpoolをazure portalから再起動!

agentpool名

k8s-agentpool1-45055478-0

再起動.jpg

再起動完了後に、対象Podのdelete → applyで、ひとまずは解決。

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?