メインコンテンツまでスキップ

imagePullSecret フィールドリファレンス

kubectl で imagePullSecret を作成する のフィールドリファレンスです。

kubectl create secret docker-registry のフラグ​

フラグデフォルト値説明
NAME—Secret の名前。小文字のみ、- と . のみ使用可能。
--docker-serverhttps://index.docker.io/v1/registry のアドレス。
--docker-username空ログインに使うユーザー名。
--docker-password空パスワードまたはトークン。
--docker-email空古い registry でのみ使用。省略可能。
--from-file—上記 3 つのフラグの代わりに使う config.json のパス。
--namespacedefaultSecret を作成する namespace。
--dry-run=client—Secret を作成せず、YAML を出力します。

--docker-server の一致ルール​

値は、イメージ名の先頭にあるホスト部分と完全に一致させる必要があります。

イメージ名正しい値
registry.fptcloud.com/my-project/api:v1registry.fptcloud.com
10.0.0.5:5000/api:v110.0.0.5:5000
nginx:1.25https://index.docker.io/v1/

Secret の命名規則​

Secret の名前は DNS subdomain 形式に従います。小文字、数字、-、. のみを使用し、先頭と末尾は英数字にします。

有効な例無効な例
regcredRegCred(大文字を含む)
fke-registry-credreg_cred(アンダースコアを含む)

関連情報​