Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes no longer supports Dockershim and it breaks TeamCity agent on EKS 1.24 #76

Open
AGirin opened this issue Jan 21, 2023 · 1 comment

Comments

@AGirin
Copy link

AGirin commented Jan 21, 2023

TeamCity agent does not work anymore on EKS 1.24... Most likely because of this:

https://docs.aws.amazon.com/eks/latest/userguide/dockershim-deprecation.html

This is the config tat works on 1.23:

apiVersion: v1
kind: Pod
metadata:
  name: teamcity-build-agent
spec:
  containers:
  - name: teamcity-build-agent
    image: jetbrains/teamcity-agent:latest
    imagePullPolicy: IfNotPresent
    volumeMounts:
    - name: teamcity-agent-conf
      mountPath: /data/teamcity_agent/conf
    - name: teamcity-agent-logs
      mountPath: /opt/buildagent/logs
    - name: teamcity-agent-plugins
      mountPath: /opt/buildagent/plugins
    - name: teamcity-agent-tools
      mountPath: /opt/buildagent/tools
    - name: teamcity-agent-temp
      mountPath: /opt/buildagent/temp
    - name: var-run-docker-sock
      mountPath: /var/run/docker.sock
    env:
    - name: DOCKER_IN_DOCKER
      value: start
    securityContext:
      privileged: true
      runAsUser: 0     
  volumes:
    - name: var-run-docker-sock
      hostPath:
        path: /var/run/docker.sock
        type: Socket
    - name: teamcity-agent-conf
    - name: teamcity-agent-logs
    - name: teamcity-agent-plugins
    - name: teamcity-agent-tools
    - name: teamcity-agent-temp

Same config produces this error on 1.24:
MountVolume.SetUp failed for volume "var-run-docker-sock" : hostPath type check failed: /var/run/docker.sock is not a socket file

Any ideas are appreciated.

Thanks.

@AGirin
Copy link
Author

AGirin commented Jan 21, 2023

Workaround is to use jetbrains/teamcity-agent:2022.10.1-linux-sudo... That seems to work on EKS 1.24...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant