Skip to content

Instantly share code, notes, and snippets.

Avatar

Servesha Dudhgaonkar xenolinux

  • Red Hat
  • Bengaluru
View GitHub Profile
View OCS job template
% oc get template
NAME DESCRIPTION PARAMETERS OBJECTS
ocs-osd-removal 1 (1 blank) 1
servesha@sdudhgao-mac deploy % oc get template ocs-osd-removal -o yaml
apiVersion: template.openshift.io/v1
kind: Template
metadata:
creationTimestamp: "2020-10-13T18:26:19Z"
managedFields:
- apiVersion: template.openshift.io/v1
View diff rook-job ocs-job
% diff rook-job ocs-job
4c4,6
< creationTimestamp: "2020-10-13T09:06:23Z"
---
> annotations:
> template.alpha.openshift.io/wait-for-ready: "true"
> creationTimestamp: "2020-10-13T18:32:08Z"
6c8
< app: rook-ceph-purge-osd
---
View OCS job yaml
% oc get job ocs-osd-removal-0 -o yaml
apiVersion: batch/v1
kind: Job
metadata:
annotations:
template.alpha.openshift.io/wait-for-ready: "true"
creationTimestamp: "2020-10-13T18:32:08Z"
labels:
app: ceph-toolbox-job-0
managedFields:
View rook job yaml
% oc get job rook-ceph-purge-osd -o yaml
apiVersion: batch/v1
kind: Job
metadata:
creationTimestamp: "2020-10-13T09:06:23Z"
labels:
app: rook-ceph-purge-osd
managedFields:
- apiVersion: batch/v1
fieldsType: FieldsV1
View gist:fa0caa67af8839282ae0fa243297b808
% oc get template ocs-osd-removal -o yaml
apiVersion: template.openshift.io/v1
kind: Template
metadata:
creationTimestamp: "2020-10-12T05:08:57Z"
managedFields:
- apiVersion: template.openshift.io/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
View osd-purge.yaml
apiVersion: batch/v1
kind: Job
metadata:
name: rook-ceph-purge-osd
namespace: rook-ceph
labels:
app: rook-ceph-purge-osd
spec:
template:
spec:
View osd-removal-template.yaml
apiVersion: template.openshift.io/v1
kind: Template
metadata:
creationTimestamp: "2020-05-26T17:43:58Z"
name: ocs-osd-removal
namespace: openshift-storage
ownerReferences:
- apiVersion: ocs.openshift.io/v1
blockOwnerDeletion: true
controller: true
View ocs-osd-removal job yaml
apiVersion: batch/v1
kind: Job
metadata:
creationTimestamp: "2020-05-19T17:41:35Z"
labels:
app: ceph-toolbox-job
name: ocs-osd-removal-5
namespace: openshift-storage
resourceVersion: "53763253"
selfLink: /apis/batch/v1/namespaces/openshift-storage/jobs/ocs-osd-removal-5
View ocs-osd-removal-job.yaml
apiVersion: batch/v1
kind: Job
metadata:
name: ocs-osd-removal-{FAILED_OSD_ID}
# ocs-osd-removal-3
namespace: openshift-storage
labels:
app: ceph-toolbox-job
spec:
template:
View gist:c7c745647cbc11a8ac7bf90e5ce5ed09
apiVersion: apps/v1
kind: Deployment
metadata:
name: rook-ceph-tools
namespace: rook-ceph
labels:
app: rook-ceph-tools
spec:
replicas: 1
selector:
You can’t perform that action at this time.