Deploy to Kubernetes cluster build step?

Hi All,

I have following setup:

1. Teamcity server and build agent are deployed as Docker containers and running in K8's cluster.

2. I have  project config that produces and pushes to the registry Docker image

I want to deploy produced (and pushed image) to the K8's cluster as a build step. What are the options?

Cheers!

0
2 comments

Hi Dmitry,

as of now, we don't have any own solution to explicitly deploy to kubernetes. The current option without accessing third party solutions (which I'm also not sure they exist) would be to do that manually through a script in a command line step or any of the other supported scripting languages.

If you would like to see this implemented, please open a feature request in our tracker: https://youtrack.jetbrains.com/issues/TW. We have recently introduced support for running agent clouds in kubernetes, so it might be a logical step forward to support deployment to it.

-2
Avatar
Permanently deleted user

Thanks Denis!

I found there is a basic Helm client support in  https://github.com/JetBrains/teamcity-kubernetes-plugin, but the official https://hub.docker.com/r/jetbrains/teamcity-agent image doesn't come with helm client installed. 

I extended the official image to have the helm client:

https://hub.docker.com/r/zeppelinux/teamcity-agent-with-helm

So now I can deploy Helm charts to the K8's cluster in TC build step without scripting anything. Here is related issue: https://youtrack.jetbrains.com/issue/TW-53443

3

Please sign in to leave a comment.