build: adds jenkins pod descriptor

This commit is contained in:
Deepak Mallubhotla 2024-04-20 13:59:13 -05:00
parent 7bde246a21
commit e90a14b337
Signed by: deepak
GPG Key ID: BEBAEBF28083E022

16
jenkins/ci-agent-pod.yaml Executable file
View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Pod
spec:
imagePullSecrets:
- name: regcreds
containers: # list of containers that you want present for your build, you can define a default container in the Jenkinsfile
- name: poetry
image: ghcr.io/dmallubhotla/poetry-image:1
command: ["tail", "-f", "/dev/null"] # this or any command that is bascially a noop is required, this is so that you don't overwrite the entrypoint of the base container
imagePullPolicy: Always # use cache or pull image for agent
resources: # limits the resources your build contaienr
requests:
memory: "2Gi"
cpu: "500m"
limits:
memory: "2Gi"