# cat /root/.docker/config.json | base64
保证只有一个登录的用户
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输出
转载于:https://blog.51cto.com/11578535/2113953