Closed Kalmalyzer closed 3 years ago
When running the Seed Job, the following pod is created today:
apiVersion: v1 kind: Pod metadata: annotations: cni.projectcalico.org/podIP: 10.24.0.17/32 creationTimestamp: "2021-03-21T12:23:11Z" deletionGracePeriodSeconds: 30 deletionTimestamp: "2021-03-21T12:24:21Z" labels: jenkins/jenkins-controller-jenkins-agent: "true" jenkins/label: jenkins-controller-jenkins-agent jenkins/label-digest: 0ecf0c85ea5642e59bb36c88579764ad70870c79 managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: .: {} f:jenkins/jenkins-controller-jenkins-agent: {} f:jenkins/label: {} f:jenkins/label-digest: {} f:spec: f:containers: k:{"name":"jnlp"}: .: {} f:args: {} f:env: .: {} k:{"name":"JENKINS_AGENT_NAME"}: .: {} f:name: {} f:value: {} k:{"name":"JENKINS_AGENT_WORKDIR"}: .: {} f:name: {} f:value: {} k:{"name":"JENKINS_NAME"}: .: {} f:name: {} f:value: {} k:{"name":"JENKINS_SECRET"}: .: {} f:name: {} f:value: {} k:{"name":"JENKINS_TUNNEL"}: .: {} f:name: {} f:value: {} k:{"name":"JENKINS_URL"}: .: {} f:name: {} f:value: {} f:image: {} f:imagePullPolicy: {} f:name: {} f:resources: .: {} f:limits: .: {} f:cpu: {} f:memory: {} f:requests: .: {} f:cpu: {} f:memory: {} f:terminationMessagePath: {} f:terminationMessagePolicy: {} f:volumeMounts: .: {} k:{"mountPath":"/home/jenkins"}: .: {} f:mountPath: {} f:name: {} f:workingDir: {} f:dnsPolicy: {} f:enableServiceLinks: {} f:nodeSelector: .: {} f:kubernetes.io/os: {} f:restartPolicy: {} f:schedulerName: {} f:securityContext: {} f:serviceAccount: {} f:serviceAccountName: {} f:terminationGracePeriodSeconds: {} f:volumes: .: {} k:{"name":"workspace-volume"}: .: {} f:emptyDir: {} f:name: {} manager: okhttp operation: Update time: "2021-03-21T12:23:10Z" - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:cni.projectcalico.org/podIP: {} manager: calico operation: Update time: "2021-03-21T12:23:13Z" - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:status: f:conditions: k:{"type":"ContainersReady"}: .: {} f:lastProbeTime: {} f:lastTransitionTime: {} f:reason: {} f:status: {} f:type: {} k:{"type":"Initialized"}: .: {} f:lastProbeTime: {} f:lastTransitionTime: {} f:reason: {} f:status: {} f:type: {} k:{"type":"Ready"}: .: {} f:lastProbeTime: {} f:lastTransitionTime: {} f:reason: {} f:status: {} f:type: {} f:containerStatuses: {} f:hostIP: {} f:phase: {} f:podIP: {} f:podIPs: .: {} k:{"ip":"10.24.0.17"}: .: {} f:ip: {} f:startTime: {} manager: kubelet operation: Update time: "2021-03-21T12:23:52Z" name: default-s3dpt namespace: default resourceVersion: "1016481" selfLink: /api/v1/namespaces/default/pods/default-s3dpt uid: 26b2333a-fb64-47ce-9bc1-a34e5fc20af0 spec: containers: - args: - d7cb0449034b5ef379585f55c7b88acfc330fe204d6ed25f3670b466fa0ee3ef - default-s3dpt env: - name: JENKINS_SECRET value: d7cb0449034b5ef379585f55c7b88acfc330fe204d6ed25f3670b466fa0ee3ef - name: JENKINS_TUNNEL value: jenkins-controller-agent:50000 - name: JENKINS_AGENT_NAME value: default-s3dpt - name: JENKINS_NAME value: default-s3dpt - name: JENKINS_AGENT_WORKDIR value: /home/jenkins - name: JENKINS_URL value: http://jenkins-controller.default.svc.cluster.local:8080/ image: jenkins/inbound-agent:4.6-1 imagePullPolicy: IfNotPresent name: jnlp resources: limits: cpu: 512m memory: 512Mi requests: cpu: 512m memory: 512Mi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /home/jenkins name: workspace-volume - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: default-token-zqhcb readOnly: true workingDir: /home/jenkins dnsPolicy: ClusterFirst enableServiceLinks: true nodeName: gke-jenkins-jenkins-controller-node-p-0df38a80-4sgd nodeSelector: kubernetes.io/os: linux priority: 0 restartPolicy: Never schedulerName: default-scheduler securityContext: {} serviceAccount: default serviceAccountName: default terminationGracePeriodSeconds: 30 tolerations: - effect: NoExecute key: node.kubernetes.io/not-ready operator: Exists tolerationSeconds: 300 - effect: NoExecute key: node.kubernetes.io/unreachable operator: Exists tolerationSeconds: 300 volumes: - emptyDir: {} name: workspace-volume - name: default-token-zqhcb secret: defaultMode: 420 secretName: default-token-zqhcb status: conditions: - lastProbeTime: null lastTransitionTime: "2021-03-21T12:23:12Z" reason: PodCompleted status: "True" type: Initialized - lastProbeTime: null lastTransitionTime: "2021-03-21T12:23:52Z" reason: PodCompleted status: "False" type: Ready - lastProbeTime: null lastTransitionTime: "2021-03-21T12:23:52Z" reason: PodCompleted status: "False" type: ContainersReady - lastProbeTime: null lastTransitionTime: "2021-03-21T12:23:12Z" status: "True" type: PodScheduled containerStatuses: - containerID: docker://50a1726901ed3bd90ab4479f1311ebd419fe8aa1b5b2540e947702e9d921fb29 image: jenkins/inbound-agent:4.6-1 imageID: docker-pullable://jenkins/inbound-agent@sha256:19b6cb12bffa7e0d108fd66b14df96c819f729dc4ab7e0a43d53cbe154899b53 lastState: {} name: jnlp ready: false restartCount: 0 started: false state: terminated: containerID: docker://50a1726901ed3bd90ab4479f1311ebd419fe8aa1b5b2540e947702e9d921fb29 exitCode: 0 finishedAt: "2021-03-21T12:23:51Z" reason: Completed startedAt: "2021-03-21T12:23:14Z" hostIP: 10.132.0.2 phase: Succeeded podIP: 10.24.0.17 podIPs: - ip: 10.24.0.17 qosClass: Guaranteed startTime: "2021-03-21T12:23:12Z"
This pod uses jenkins/inbound-agent:4.6-1 as its image. It should use the default agent. How do we make that happen?
jenkins/inbound-agent:4.6-1
Duplicate of #39, closing
When running the Seed Job, the following pod is created today:
This pod uses
jenkins/inbound-agent:4.6-1
as its image. It should use the default agent. How do we make that happen?