ECR requires authentication and SSL, but the check for existing docker images in deploy/image.py makes an http request with no auth. To fix this, I've added the ability to configure an external script that can be called to check for existing images (see example below). Since there's no standard way to check registries, this provides flexibility to support whatever is needed.
The version compatibility check in kubernetes/api.py:check_if_cronjob_batch_v1_compatible() fails with version strings returned by EKS (e.g., v1.25.7-eks-a59e1f0). I've added a regex to strip off anything after - in the version string,
Purpose of PR
Updates to support deployment to AWS EKS.
I've run into two issues deploying to EKS:
deploy/image.py
makes an http request with no auth. To fix this, I've added the ability to configure an external script that can be called to check for existing images (see example below). Since there's no standard way to check registries, this provides flexibility to support whatever is needed.kubernetes/api.py:check_if_cronjob_batch_v1_compatible()
fails with version strings returned by EKS (e.g.,v1.25.7-eks-a59e1f0
). I've added a regex to strip off anything after-
in the version string,Parts of the app this will impact
Kubernetes deployment
Additional information
Example image check script that uses aws-cli: