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/.
codefresh generate image-pull-secret
Option | Alias | Type | Default | Description |
---|---|---|---|---|
--help | Print help information | |||
--cluster | cluster name. required |
|||
--namespace | string | default | namespace name | |
--registry | name of Docker registry to generate pull secret from. required |
codefresh generate image-pull-secret --cluster cluster --registry cfcr