简体   繁体   中英

Jetbrain Space Automation how to deploy an image to AWS EKS (Kubernetes)?

I am trying to be able to deploy an image from a space repository to AWS EKS. So far I managed to successfully save my docker image to Space. But I stuck at finding a way to upload my image to my cluster.

So far I've created the following to save my docker image to the registy. Does someone know how I could push this towards AWS EKS? Thank you in advance for taking the time help me!

job("Build Image and save to registry") {
    startOn {
        gitPush {
            branchFilter {
                +"refs/heads/main"
            }
        }
    }
    
    docker {
        resources {
            cpu = 512
            memory = 1024
        }

        build {
            context = "."
            file = "Dockerfile"
        }
    
        push("<my-private>.registry.jetbrains.space/p/repo/repo/image:latest")
    }
}

It is not currently possible out-of-the-box to push to private registries via the docker top-level DSL. The feature will be added soon, as most of the puzzle pieces have been put in place now. You can track https://youtrack.jetbrains.com/issue/SPACE-9234/Authentication-to-private-registries for more info about this.

In the meantime, some workarounds were presented in the YouTrack issue. Please check them out.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM