Question & Answer
Question
Create a job yaml script to submit a job.
>cat test.yaml
apiVersion: batch/v1
kind: Job
metadata:
namespace: lsf
name: jobpod-1
spec:
template:
metadata:
name: jobpod-1
annotations:
lsf.ibm.com/queue: "myqueue"
lsf.ibm.com/user: usera
spec:
schedulerName: lsf
containers:
- name: bigjob
image: centos
imagePullPolicy: IfNotPresent
command: ["sleep", "10"]
resources:
requests:
cpu: 1
memory: 128M
limits:
cpu: 1
memory: 256M
restartPolicy: Never
>kubectl -f test.yaml
Running the kubectl describe pods <pod_id> -n lsf command returned an authorization error.
lsf.ibm.com/pendingReason: Job submission failed: Not authorized to submit with the -user option. Job not submitted.
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSWRJV","label":"IBM Spectrum LSF"},"ARM Category":[{"code":"a8m50000000CeJaAAK","label":"A-Find Nothing"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"10.1.0.9","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
08 May 2021
UID
ibm16194253