Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 359 Bytes

File metadata and controls

25 lines (23 loc) · 359 Bytes
kubectl config use-context cluster1-admin@cluster1
# vim 13.yaml

apiVersion: batch/v1
kind: Job
metadata:
  name: hi-job
spec:
  template:
    spec:
      containers:
      - name: hi-job
        image: busybox
        command: ["echo", "hello world"]
      restartPolicy: Never
  backoffLimit: 6
  completions: 3
k apply -f 13.yaml