Registry authentication

Applications often need to use private registries. This section provides an example of how to supply your credentials to the agent so it can pull the images.

When using private registries or DockerHub you will most likely need to specify authentication details. To do that, first create the secret in the secrets page:

And then specify the authentication secret name in the application yaml:

name: redis-example-private
scheduling:
  type: AllDevices
spec:
  containers:
  - name: hello
    image: hello-world:latest
    # Registry authentication
    auth:
      username:  <YOUR REGISTRY USERNAME>
      fromSecret: <SECRET NAME>

Last updated