Jenkins kubernetes plugin not working

前端 未结 2 1935
耶瑟儿~
耶瑟儿~ 2020-12-17 01:21

I am trying to setup Jenkins Dynamic slaves creation using jenkins-kubernetes plugin.

My jenkins is running outside K8s Cluster.

Link: https

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-17 02:17

    Ok! I find the issue, I am giving container cap as 10 (in default Namespace)which is too low for my cluster. I have 15 Worker nodes cluster and when K8s master trying starting a pod it starts multiple pods at once(though terminates rest after one is scheduled) which eventually crosses the container cap limit(which was 10). I changed the CAP to 100 and now things are working as expected.

    One thing which I noticed with K8s Jenkins plugins, it will not clear out the error container itself which increases the container count and leads to this problem.

提交回复
热议问题