Created
October 13, 2020 19:33
-
-
Save xenolinux/32669e3dc432958f510ad0e70bbdb780 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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 | |
fieldsType: FieldsV1 | |
fieldsV1: | |
f:metadata: | |
f:ownerReferences: | |
.: {} | |
k:{"uid":"6b6dd43c-c7d2-40bc-ac22-306bd20f24e6"}: | |
.: {} | |
f:apiVersion: {} | |
f:blockOwnerDeletion: {} | |
f:controller: {} | |
f:kind: {} | |
f:name: {} | |
f:uid: {} | |
f:objects: {} | |
f:parameters: {} | |
manager: ocs-operator | |
operation: Update | |
time: "2020-10-13T18:26:19Z" | |
name: ocs-osd-removal | |
namespace: openshift-storage | |
ownerReferences: | |
- apiVersion: ocs.openshift.io/v1 | |
blockOwnerDeletion: true | |
controller: true | |
kind: StorageCluster | |
name: ocs-storagecluster | |
uid: 6b6dd43c-c7d2-40bc-ac22-306bd20f24e6 | |
resourceVersion: "281989" | |
selfLink: /apis/template.openshift.io/v1/namespaces/openshift-storage/templates/ocs-osd-removal | |
uid: ce2d2ef2-138c-4a48-9069-b0f6caf94662 | |
objects: | |
- apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
annotations: | |
template.alpha.openshift.io/wait-for-ready: "true" | |
creationTimestamp: null | |
labels: | |
app: ceph-toolbox-job-${FAILED_OSD_IDS} | |
name: ocs-osd-removal-${FAILED_OSD_IDS} | |
namespace: openshift-storage | |
spec: | |
template: | |
metadata: | |
creationTimestamp: null | |
spec: | |
containers: | |
- command: | |
- ceph | |
- osd | |
- remove | |
- --osd-ids=${FAILED_OSD_IDS} | |
- --namespace=openshift-storage | |
env: | |
- name: ROOK_MON_ENDPOINTS | |
valueFrom: | |
configMapKeyRef: | |
key: data | |
name: rook-ceph-mon-endpoints | |
- name: POD_NAMESPACE | |
value: openshift-storage | |
- name: ROOK_CEPH_USERNAME | |
valueFrom: | |
secretKeyRef: | |
key: ceph-username | |
name: rook-ceph-mon | |
- name: ROOK_CEPH_SECRET | |
valueFrom: | |
secretKeyRef: | |
key: ceph-secret | |
name: rook-ceph-mon | |
- name: ROOK_FSID | |
valueFrom: | |
secretKeyRef: | |
key: fsid | |
name: rook-ceph-mon | |
- name: ROOK_CONFIG_DIR | |
value: /var/lib/rook | |
- name: ROOK_CEPH_CONFIG_OVERRIDE | |
value: /etc/rook/config/override.conf | |
- name: ROOK_LOG_LEVEL | |
value: DEBUG | |
image: rook/ceph:v1.4.0.283.g4df2549 | |
name: operator | |
resources: {} | |
volumeMounts: | |
- mountPath: /etc/ceph | |
name: ceph-conf-emptydir | |
restartPolicy: Never | |
serviceAccountName: rook-ceph-system | |
volumes: | |
- emptyDir: {} | |
name: ceph-conf-emptydir | |
- emptyDir: {} | |
name: rook-config | |
status: {} | |
parameters: | |
- description: "\nThe parameter OSD IDs needs a comma-separated list of numerical | |
FAILED_OSD_IDs \nwhen a single job removes multiple OSDs. \nIf the expected comma-separated | |
format is not used, \nor an ID cannot be converted to an int, \nor if an OSD ID | |
is not found, errors will be generated in the log and no OSDs would be removed." | |
displayName: OSD IDs | |
name: FAILED_OSD_IDS | |
required: true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment