Last active
August 24, 2020 18:33
-
-
Save xenolinux/efdd9d72eb451f225b0aebf84a5e1843 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
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: rook-ceph-purge-osd | |
namespace: rook-ceph | |
labels: | |
app: rook-ceph-purge-osd | |
spec: | |
template: | |
spec: | |
serviceAccountName: rook-ceph-system | |
containers: | |
- name: osd-removal | |
image: 191996/rooktag | |
# TODO: Insert the OSD ID in the last parameter that is to be removed | |
# The OSD IDs are a comma-separated list. For example: "0" or "0,2". | |
args: ["ceph", "osd", "remove", "--osd-ids", "1"] | |
env: | |
- name: POD_NAMESPACE | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.namespace | |
- name: ROOK_MON_ENDPOINTS | |
valueFrom: | |
configMapKeyRef: | |
key: data | |
name: rook-ceph-mon-endpoints | |
- 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_CONFIG_DIR | |
value: /var/lib/rook | |
- name: ROOK_CEPH_CONFIG_OVERRIDE | |
value: /etc/rook/config/override.conf | |
- name: ROOK_FSID | |
valueFrom: | |
secretKeyRef: | |
key: fsid | |
name: rook-ceph-mon | |
- name: ROOK_LOG_LEVEL | |
value: DEBUG | |
volumeMounts: | |
- mountPath: /var/lib/rook | |
name: rook-config | |
- mountPath: /etc/ceph | |
name: ceph-conf-emptydir | |
volumes: | |
- name: rook-config | |
emptyDir: {} | |
- emptyDir: {} | |
name: ceph-conf-emptydir | |
restartPolicy: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment