| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
217 バイト追加 、 2020年11月23日 (月) 12:19
*kubectl exec でそれぞれのpodにhostname コマンドを実行する
<blockquote>
永続化Volumeが、hostPath指定の場合、1つのPodからしか接続できないため立ち上がらない。
</blockquote>
<pre>
$ for i in 0 1; do kubectl exec pod/web-$i hostname; done
</pre>
<blockquote>Each Pod 永続化Volumeが、hostPath指定の場合、1つのPodからしか接続できないため立ち上がらない。</blockquote><pre>$ kubectl describe pods web-1 :Type Reason Age From Message ---- ------ ---- ---- ------- Warning FailedScheduling 22h (x14 over 23h) default-scheduler 0/1 nodes are available: 1 pod has a stable hostname based on its ordinal indexunbound immediate PersistentVolumeClaims. Use kubectl exec to execute the hostname command in each Pod:TODO</pre>
==デプロイ==

案内メニュー