Exploit.cz

Exploit.cz

Thoughts, stories and ideas about Symfony, PHP, AWS, Docker, Kubernetes

How to add private Docker registry to Rancher
rancher

How to add private Docker registry to Rancher

Via kubectl kubectl -n kube-system create secret docker-registry gitlab \ --docker-server="registry.example.com" \ [email protected] \ --docker-username=name \ --docker-password=password Via Kubernetes yaml apiVersion: v1 data: .dockerconfigjson: eyJhdXRocyI6eyJyZWdpc3RyeS5leGFtcGxlLmNvbSI6eyJ1c2VybmFtZSI6Im5hbWUiLCJwYXNzd29yZCI6InBhc3N3b3JkIiwiZW1haWwiOiJyZWdpc3RyeUBleGFtcGxlLmNvbSIsImF1dGgiOiJibUZ0WlRwd1lYTnpkMjl5WkE9PSJ9fX0= kind: Secret metadata: name: gitlab
1 min read