apiVersion: v1
kind: Secret
metadata:
name: <secret-name>
namespace: <target-namespace>
type: kubernetes.io/dockerconfigjson
stringData:
.dockerconfigjson: |
{
"auths": {
"registry.example.com": {
"username": "CI_USER",
"password": "CI_PASS",
"auth": "BASE64(user:pass)"
}
}
}