Pushing & running
How to push tasks to your registry so that they can later be run on Kubernetes.
Before you can run anything on kubernetes, your task image must be pushed to a docker registry that can be accessed from the cluster. To push the image to a repository, you must define the image name in
- Build your tasks into your image
- Make sure you're authenticated to your registry.
- Push the image
This will push the image to registry you defined in your
If your repository is not publicly available, you must create a kubernetes secret containing the authentication information. See the kubernetes documentation.
Once you have created a secret, configure the kubernetes provider to use it for pulling images:
You should now be ready to run your task on the your cluster. To use the kubernetes task provider, simply use the
--provider option to
cowait run as follows. You may pass inputs and other options as you would normally.
cowait run your_task --provider kubernetes