Editing
Accessing Private Repositories
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
For each private registry that you need to have a password for, add a secret as described in the k8s docs<ref>https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/</ref>: kubectl create secret docker-registry <secret-name> \ --docker-server=<your-registry-server> \ --docker-username=<your-name> \ --docker-password=<your-pword> \ --docker-email=<your-email> \ -n <namespace> where: * <secret-name> is the name that will be used to access the registry credentials * <your-registry-server> is your Private Docker Registry FQDN. (<nowiki>use https://index.docker.io/v2/ for DockerHub</nowiki>) * <your-name> is your Docker username. * <your-pword> is your Docker password. * <your-email> is your Docker email. * <namespace> is the namespace where the container will be used Note that the secret must be created in the namespace that the container will be used in ... if the same registry is used in multiple namespaces, the secret must be created in each namespace. To use the registry secret, use the 'imagePullSecrets' tag in the manifest: apiVersion: v1 kind: Pod metadata: name: private-reg namespace: <namespace> spec: containers: - name: private-reg-container image: <your-private-image> imagePullSecrets: - name: <secret-name> There is a way to attach registry secrets to service accounts, which may resolve the need to have multiple copies of the secret ... but ... ---- <references/>
Summary:
Please note that all contributions to WilliamsNet Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
WilliamsNet Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Commons
Architecture
How-To
Systems
Hardware
SysAdmin
Kubernetes
OpenSearch
Special
Pages to create
All pages
Recent changes
Random page
Help about MediaWiki
Formatting Help
Tools
What links here
Related changes
Special pages
Page information