Advertisement
Guest User

job_description

a guest
Aug 18th, 2021
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 6.83 KB | None | 0 0
  1. kubectl get job -n kube-system
  2. NAME                               COMPLETIONS   DURATION   AGE
  3. cleanup-registry-27154080          1/1           39s        8h
  4. etcd-defrag-27153960               1/1           2s         10h
  5. rook-ceph-osd-prepare-nodename-1   1/1           3s         2m12s
  6. rook-ceph-osd-prepare-nodename-2   1/1           3s         2m12s
  7. rook-ceph-osd-prepare-nodename-3   1/1           16s        10h
  8. storageclass-cleanup               1/1           4s         10h
  9.  
  10. $ kubectl get job -n kube-system rook-ceph-osd-prepare-nodename-3
  11. NAME                               COMPLETIONS   DURATION   AGE
  12. rook-ceph-osd-prepare-nodename-3   1/1           16s        10h
  13.  
  14. $ kubectl get job -n kube-system rook-ceph-osd-prepare-nodename-3 -o yaml
  15. apiVersion: batch/v1
  16. kind: Job
  17. metadata:
  18.   creationTimestamp: "2021-08-17T22:15:14Z"
  19.   labels:
  20.     app: rook-ceph-osd-prepare
  21.     ceph-version: 15.2.13-0
  22.     rook-version: v1.6.7
  23.     rook_cluster: kube-system
  24.   name: rook-ceph-osd-prepare-nodename-3
  25.   namespace: kube-system
  26.   ownerReferences:
  27.   - apiVersion: ceph.rook.io/v1
  28.     blockOwnerDeletion: true
  29.     controller: true
  30.     kind: CephCluster
  31.     name: kube-system
  32.     uid: 2a2fc3e1-16c9-4c01-8601-cebac03408f9
  33.   resourceVersion: "35908"
  34.   uid: 3a892a8f-ec4a-49a6-ac47-b487f2dc8671
  35. spec:
  36.   backoffLimit: 6
  37.   completions: 1
  38.   parallelism: 1
  39.   selector:
  40.     matchLabels:
  41.       controller-uid: 3a892a8f-ec4a-49a6-ac47-b487f2dc8671
  42.   template:
  43.     metadata:
  44.       creationTimestamp: null
  45.       labels:
  46.         app: rook-ceph-osd-prepare
  47.         ceph.rook.io/pvc: ""
  48.         controller-uid: 3a892a8f-ec4a-49a6-ac47-b487f2dc8671
  49.         job-name: rook-ceph-osd-prepare-nodename-3
  50.         rook_cluster: kube-system
  51.       name: rook-ceph-osd
  52.     spec:
  53.       affinity: {}
  54.       containers:
  55.       - args:
  56.        - --
  57.         - /rook/rook
  58.         - ceph
  59.         - osd
  60.         - provision
  61.         command:
  62.        - /rook/tini
  63.         env:
  64.         - name: ROOK_NODE_NAME
  65.           value: nodename-3
  66.         - name: ROOK_CLUSTER_ID
  67.           value: 2a2fc3e1-16c9-4c01-8601-cebac03408f9
  68.         - name: ROOK_CLUSTER_NAME
  69.           value: kube-system
  70.         - name: ROOK_PRIVATE_IP
  71.           valueFrom:
  72.             fieldRef:
  73.               apiVersion: v1
  74.               fieldPath: status.podIP
  75.         - name: ROOK_PUBLIC_IP
  76.           valueFrom:
  77.             fieldRef:
  78.               apiVersion: v1
  79.               fieldPath: status.podIP
  80.         - name: POD_NAMESPACE
  81.           value: kube-system
  82.         - name: ROOK_MON_ENDPOINTS
  83.           valueFrom:
  84.             configMapKeyRef:
  85.               key: data
  86.               name: rook-ceph-mon-endpoints
  87.         - name: ROOK_MON_SECRET
  88.           valueFrom:
  89.             secretKeyRef:
  90.               key: mon-secret
  91.               name: rook-ceph-mon
  92.         - name: ROOK_CEPH_USERNAME
  93.           valueFrom:
  94.             secretKeyRef:
  95.               key: ceph-username
  96.               name: rook-ceph-mon
  97.         - name: ROOK_CEPH_SECRET
  98.           valueFrom:
  99.             secretKeyRef:
  100.               key: ceph-secret
  101.               name: rook-ceph-mon
  102.         - name: ROOK_CONFIG_DIR
  103.           value: /var/lib/rook
  104.         - name: ROOK_CEPH_CONFIG_OVERRIDE
  105.           value: /etc/rook/config/override.conf
  106.         - name: ROOK_FSID
  107.           valueFrom:
  108.             secretKeyRef:
  109.               key: fsid
  110.               name: rook-ceph-mon
  111.         - name: NODE_NAME
  112.           valueFrom:
  113.             fieldRef:
  114.               apiVersion: v1
  115.               fieldPath: spec.nodeName
  116.         - name: ROOK_CRUSHMAP_ROOT
  117.           value: default
  118.         - name: ROOK_CRUSHMAP_HOSTNAME
  119.           value: nodename-3
  120.         - name: CEPH_VOLUME_DEBUG
  121.           value: "1"
  122.         - name: CEPH_VOLUME_SKIP_RESTORECON
  123.           value: "1"
  124.         - name: DM_DISABLE_UDEV
  125.           value: "1"
  126.         - name: ROOK_OSDS_PER_DEVICE
  127.           value: "1"
  128.         - name: ROOK_LOG_LEVEL
  129.           value: DEBUG
  130.         - name: ROOK_DATA_DEVICE_FILTER
  131.           value: all
  132.         - name: ROOK_CEPH_VERSION
  133.           value: ceph version 15.2.13-0 octopus
  134.         - name: ROOK_OSD_CRUSH_DEVICE_CLASS
  135.         - name: ROOK_OSD_CRUSH_INITIAL_WEIGHT
  136.         image: docker.io/ceph/ceph:v15.2.13
  137.         imagePullPolicy: IfNotPresent
  138.         name: provision
  139.         resources: {}
  140.         securityContext:
  141.           privileged: true
  142.           readOnlyRootFilesystem: false
  143.           runAsNonRoot: false
  144.           runAsUser: 0
  145.         terminationMessagePath: /dev/termination-log
  146.         terminationMessagePolicy: File
  147.         volumeMounts:
  148.         - mountPath: /var/lib/rook
  149.           name: rook-data
  150.         - mountPath: /etc/ceph
  151.           name: ceph-conf-emptydir
  152.         - mountPath: /var/log/ceph
  153.           name: rook-ceph-log
  154.         - mountPath: /var/lib/ceph/crash
  155.           name: rook-ceph-crash
  156.         - mountPath: /dev
  157.           name: devices
  158.         - mountPath: /run/udev
  159.           name: udev
  160.         - mountPath: /rook
  161.           name: rook-binaries
  162.         - mountPath: /rootfs
  163.           name: rootfs
  164.           readOnly: true
  165.       dnsPolicy: ClusterFirstWithHostNet
  166.       hostNetwork: true
  167.       initContainers:
  168.       - args:
  169.        - copy-binaries
  170.         - --copy-to-dir
  171.         - /rook
  172.         image: nci-docker.artifactory3.ds.jdsu.net/rook-ceph:v1.6.7
  173.         imagePullPolicy: IfNotPresent
  174.         name: copy-bins
  175.         resources: {}
  176.         terminationMessagePath: /dev/termination-log
  177.         terminationMessagePolicy: File
  178.         volumeMounts:
  179.         - mountPath: /rook
  180.           name: rook-binaries
  181.       nodeSelector:
  182.         kubernetes.io/hostname: nodename-3
  183.       restartPolicy: OnFailure
  184.       schedulerName: default-scheduler
  185.       securityContext: {}
  186.       serviceAccount: rook-ceph-osd
  187.       serviceAccountName: rook-ceph-osd
  188.       terminationGracePeriodSeconds: 30
  189.       volumes:
  190.       - hostPath:
  191.           path: /var/tmp/persistent-data/rook
  192.           type: ""
  193.         name: rook-data
  194.       - emptyDir: {}
  195.         name: ceph-conf-emptydir
  196.       - hostPath:
  197.           path: /var/tmp/persistent-data/rook/kube-system/log
  198.           type: ""
  199.         name: rook-ceph-log
  200.       - hostPath:
  201.           path: /var/tmp/persistent-data/rook/kube-system/crash
  202.           type: ""
  203.         name: rook-ceph-crash
  204.       - emptyDir: {}
  205.         name: rook-binaries
  206.       - hostPath:
  207.           path: /dev
  208.           type: ""
  209.         name: devices
  210.       - hostPath:
  211.           path: /run/udev
  212.           type: ""
  213.         name: udev
  214.       - hostPath:
  215.           path: /
  216.           type: ""
  217.         name: rootfs
  218. status:
  219.   active: 1
  220.   completionTime: "2021-08-17T22:15:30Z"
  221.   conditions:
  222.   - lastProbeTime: "2021-08-17T22:15:30Z"
  223.     lastTransitionTime: "2021-08-17T22:15:30Z"
  224.     status: "True"
  225.     type: Complete
  226.   startTime: "2021-08-17T22:15:14Z"
  227.   succeeded: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement