Image Pull Secret

Description

Generate image pull secret on Kubernetes cluster from integrated Docker registry.


For Kuberentes cluster to pull an image from your private registry it needs special secret typed as kubernetes.io/dockercfg.
After this secret been created you can use them in pod template that lives in the same namespace.
You can generate this secret from any integrated Docker registry on your account.
More information about image pull secret can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/.

Command

codefresh generate image-pull-secret

Options

Option Alias Default Description
–help Print help information
–cluster cluster name. required
–namespace default namespace name
–registry name of Docker registry to generate pull secret from. required

Examples

Generate image pull secret

codefresh generate image-pull-secret --cluster cluster --registry cfcr