prep-5.yaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. labels:
  5. app: rook-ceph-osd-prepare
  6. batch.kubernetes.io/job-name: rook-ceph-osd-prepare-rpi4-6
  7. job-name: rook-ceph-osd-prepare-rpi4-6
  8. rook_cluster: think-ns
  9. name: rook-ceph-osd-prepare-rpi4-6-8mlkk
  10. namespace: think-ns
  11. ownerReferences:
  12. - apiVersion: batch/v1
  13. uid:
  14. blockOwnerDeletion: true
  15. controller: true
  16. kind: Job
  17. name: rook-ceph-osd-prepare-rpi4-6
  18. spec:
  19. affinity:
  20. nodeAffinity:
  21. requiredDuringSchedulingIgnoredDuringExecution:
  22. nodeSelectorTerms:
  23. - matchExpressions:
  24. - key: all
  25. operator: In
  26. values:
  27. - all
  28. containers:
  29. - args:
  30. - ceph
  31. - osd
  32. - provision
  33. command:
  34. - /rook/rook
  35. env:
  36. - name: ROOK_NODE_NAME
  37. value: rpi4-6
  38. - name: ROOK_CLUSTER_ID
  39. value: 630b4c7c-bd8e-4285-b768-63b7a7d3d498
  40. - name: ROOK_CLUSTER_NAME
  41. value: think-ns
  42. - name: ROOK_PRIVATE_IP
  43. valueFrom:
  44. fieldRef:
  45. apiVersion: v1
  46. fieldPath: status.podIP
  47. - name: ROOK_PUBLIC_IP
  48. valueFrom:
  49. fieldRef:
  50. apiVersion: v1
  51. fieldPath: status.podIP
  52. - name: POD_NAMESPACE
  53. value: think-ns
  54. - name: ROOK_MON_ENDPOINTS
  55. valueFrom:
  56. configMapKeyRef:
  57. key: data
  58. name: rook-ceph-mon-endpoints
  59. - name: ROOK_CONFIG_DIR
  60. value: /var/lib/rook
  61. - name: ROOK_CEPH_CONFIG_OVERRIDE
  62. value: /etc/rook/config/override.conf
  63. - name: NODE_NAME
  64. valueFrom:
  65. fieldRef:
  66. apiVersion: v1
  67. fieldPath: spec.nodeName
  68. - name: ROOK_CRUSHMAP_ROOT
  69. value: default
  70. - name: ROOK_CEPH_USERNAME
  71. valueFrom:
  72. secretKeyRef:
  73. key: ceph-username
  74. name: rook-ceph-mon
  75. - name: ROOK_FSID
  76. valueFrom:
  77. secretKeyRef:
  78. key: fsid
  79. name: rook-ceph-mon
  80. - name: ROOK_OSD_STORE_TYPE
  81. value: bluestore
  82. - name: ROOK_CRUSHMAP_HOSTNAME
  83. value: rpi4-6
  84. - name: CEPH_VOLUME_DEBUG
  85. value: "1"
  86. - name: CEPH_VOLUME_SKIP_RESTORECON
  87. value: "1"
  88. - name: DM_DISABLE_UDEV
  89. value: "1"
  90. - name: ROOK_OSDS_PER_DEVICE
  91. value: "1"
  92. - name: ROOK_LOG_LEVEL
  93. value: DEBUG
  94. - name: ROOK_DATA_DEVICE_FILTER
  95. value: all
  96. - name: ROOK_CEPH_VERSION
  97. value: ceph version 17.2.6-0 quincy
  98. - name: ROOK_OSD_CRUSH_DEVICE_CLASS
  99. - name: ROOK_OSD_CRUSH_INITIAL_WEIGHT
  100. envFrom:
  101. - configMapRef:
  102. name: rook-ceph-osd-env-override
  103. optional: true
  104. image: quay.io/ceph/ceph:v17.2.6
  105. imagePullPolicy: IfNotPresent
  106. name: provision
  107. resources:
  108. requests:
  109. cpu: 500m
  110. memory: 50Mi
  111. securityContext:
  112. privileged: true
  113. readOnlyRootFilesystem: false
  114. runAsNonRoot: false
  115. runAsUser: 0
  116. terminationMessagePath: /dev/termination-log
  117. terminationMessagePolicy: File
  118. volumeMounts:
  119. - mountPath: /var/lib/rook
  120. name: rook-data
  121. - mountPath: /etc/ceph
  122. name: ceph-conf-emptydir
  123. - mountPath: /run/ceph
  124. name: ceph-daemons-sock-dir
  125. - mountPath: /var/log/ceph
  126. name: rook-ceph-log
  127. - mountPath: /var/lib/ceph/crash
  128. name: rook-ceph-crash
  129. - mountPath: /dev
  130. name: devices
  131. - mountPath: /run/udev
  132. name: udev
  133. - mountPath: /rook
  134. name: rook-binaries
  135. - mountPath: /var/lib/rook-ceph-mon
  136. name: ceph-admin-secret
  137. readOnly: true
  138. - mountPath: /rootfs
  139. name: rootfs
  140. readOnly: true
  141. - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
  142. name: kube-api-access-p4vjk
  143. readOnly: true
  144. dnsPolicy: ClusterFirst
  145. enableServiceLinks: true
  146. initContainers:
  147. - args:
  148. - --archive
  149. - --force
  150. - --verbose
  151. - /usr/local/bin/rook
  152. - /rook
  153. command:
  154. - cp
  155. image: rook/ceph:master
  156. imagePullPolicy: IfNotPresent
  157. name: copy-bins
  158. resources:
  159. requests:
  160. cpu: 500m
  161. memory: 50Mi
  162. terminationMessagePath: /dev/termination-log
  163. terminationMessagePolicy: File
  164. volumeMounts:
  165. - mountPath: /rook
  166. name: rook-binaries
  167. - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
  168. name: kube-api-access-p4vjk
  169. readOnly: true
  170. nodeName: rpi4-6
  171. nodeSelector:
  172. kubernetes.io/hostname: rpi4-6
  173. preemptionPolicy: PreemptLowerPriority
  174. priority: 2000001000
  175. priorityClassName: system-node-critical
  176. restartPolicy: OnFailure
  177. schedulerName: default-scheduler
  178. securityContext: {}
  179. serviceAccount: rook-ceph-osd
  180. serviceAccountName: rook-ceph-osd
  181. terminationGracePeriodSeconds: 30
  182. tolerations:
  183. - key: all
  184. operator: Exists
  185. - effect: NoExecute
  186. key: node.kubernetes.io/not-ready
  187. operator: Exists
  188. tolerationSeconds: 300
  189. - effect: NoExecute
  190. key: node.kubernetes.io/unreachable
  191. operator: Exists
  192. tolerationSeconds: 300
  193. volumes:
  194. - hostPath:
  195. path: /var/lib/rook
  196. type: ""
  197. name: rook-data
  198. - emptyDir: {}
  199. name: ceph-conf-emptydir
  200. - hostPath:
  201. path: /var/lib/rook/exporter
  202. type: DirectoryOrCreate
  203. name: ceph-daemons-sock-dir
  204. - hostPath:
  205. path: /var/lib/rook/think-ns/log
  206. type: ""
  207. name: rook-ceph-log
  208. - hostPath:
  209. path: /var/lib/rook/think-ns/crash
  210. type: ""
  211. name: rook-ceph-crash
  212. - emptyDir: {}
  213. name: rook-binaries
  214. - hostPath:
  215. path: /run/udev
  216. type: ""
  217. name: udev
  218. - hostPath:
  219. path: /dev
  220. type: ""
  221. name: devices
  222. - name: ceph-admin-secret
  223. secret:
  224. defaultMode: 420
  225. items:
  226. - key: ceph-secret
  227. path: secret.keyring
  228. secretName: rook-ceph-mon
  229. - hostPath:
  230. path: /
  231. type: ""
  232. name: rootfs
  233. - name: kube-api-access-p4vjk
  234. projected:
  235. defaultMode: 420
  236. sources:
  237. - serviceAccountToken:
  238. expirationSeconds: 3607
  239. path: token
  240. - configMap:
  241. items:
  242. - key: ca.crt
  243. path: ca.crt
  244. name: kube-root-ca.crt
  245. - downwardAPI:
  246. items:
  247. - fieldRef:
  248. apiVersion: v1
  249. fieldPath: metadata.namespace
  250. path: namespace