I am trying to get a simple job to execute on Rancher 2.2 and I can't get it to run a hello world or any example jobs I've found.
At first I thought it was our custom catalog causing the issue(this is where I was attempting to create helm based job workloads) but then realized, workloads created through the workload wizard also never run. I've also tried creating an example workload directly from the command line with the rancher cli kubectl interface. Is there something I'm missing with respect to allowing my job to be scheduled in the test cluster we have? Relevant info for the job below.
Create Job
rancher kubectl apply -f https://k8s.io/examples/controllers/job.yaml
Pi example Job Yaml Dump
apiVersion: batch/v1
kind: Job
metadata:
creationTimestamp: "2019-06-19T12:48:09Z"
labels:
controller-uid: 7db1fd73-9290-11e9-ac59-02b72a75e772
job-name: pi
name: pi
namespace: default
resourceVersion: "191427"
selfLink: /apis/batch/v1/namespaces/default/jobs/pi
uid: 7db1fd73-9290-11e9-ac59-02b72a75e772
spec:
backoffLimit: 4
completions: 1
parallelism: 1
selector:
matchLabels:
controller-uid: 7db1fd73-9290-11e9-ac59-02b72a75e772
template:
metadata:
creationTimestamp: null
labels:
controller-uid: 7db1fd73-9290-11e9-ac59-02b72a75e772
job-name: pi
spec:
containers:
- command:
- perl
- -Mbignum=bpi
- -wle
- print bpi(2000)
image: perl
imagePullPolicy: Always
name: pi
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Never
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status: {}
Describe Output:
rancher kubectl describe jobs/pi
Name: pi
Namespace: default
Selector: controller-uid=7db1fd73-9290-11e9-ac59-02b72a75e772
Labels: controller-uid=7db1fd73-9290-11e9-ac59-02b72a75e772
job-name=pi
Annotations: <none>
Parallelism: 1
Completions: 1
Pods Statuses: 0 Running / 0 Succeeded / 0 Failed
Pod Template:
Labels: controller-uid=7db1fd73-9290-11e9-ac59-02b72a75e772
job-name=pi
Containers:
pi:
Image: perl
Port: <none>
Host Port: <none>
Command:
perl
-Mbignum=bpi
-wle
print bpi(2000)
Environment: <none>
Mounts: <none>
Volumes: <none>
Events: <none>
Rancher UI
perl
0 Pods / Created 15 minutes ago