この記事は Kubernetes2 Advent Calendar 2018 の14日目の記事です。 過去の日付ですが、未参加だったので、せっかくなので埋めようと思います。 GitLabにはContainer Registryが統合されています。参考 このRegistryをKubernetesで使おう、という記事です。 KubernetesではGitLabへの認証情報をSecretとして保持できるので、このSecretの作り方をまとめます。 Kubernetes上にGitLabを立てる、という記事ではないので、ご注意ください。 TL;DR GitLabで個人ごとにトークンを作成 そのトークンを次の形式でbase64エンコード 任意の文字列:トークン できた文字列を次の形式でbase64エンコード {"GitLabのアドレス":{"auth":"さっき作った文字列"}} できた文字列をdoc