vim dockerauth.yaml
apiVersion: v1
kind: Secret
metadata:
name: authissll
namespace: lamp
type: kubernetes.io/dockercfg
data:
.dockerconfigjson: ewoJImF1dGhzIjogewoJCSJodWIuaXNzbGwuY29tIjogewoJCQkiYXV0aCI6ICJZV1J0YVc0NlUzTnNiRUF4TVRBeCIKCQl9Cgl9Cn0=
type: kubernetes.io/dockerconfigjson
.dockerconfigjson: 为cat /root/.docker/config.json | base64输出
原文地址:http://blog.51cto.com/11578535/2113953