hibench-lustre.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: hibench-master-lustre
  5. labels:
  6. app: hibench-master-lustre
  7. spec:
  8. containers:
  9. - name: hibench-master-lustre
  10. image: pl4tinum/hibench:spark-3.0-hadoop-2.7-scala-2.12
  11. imagePullPolicy: Always
  12. command:
  13. - sleep
  14. - "3600"
  15. volumeMounts:
  16. - name: core-site
  17. mountPath: /usr/local/hadoop/etc/hadoop/core-site.xml
  18. subPath: core-site.xml
  19. - name: hadoop-conf
  20. mountPath: /HiBench/conf/hadoop.conf
  21. subPath: hadoop.conf
  22. - name: spark-conf
  23. mountPath: /HiBench/conf/spark.conf
  24. subPath: spark.conf
  25. volumes:
  26. - name: core-site
  27. configMap:
  28. name: core-site-lustre
  29. items:
  30. - key: core-site-lustre.xml
  31. path: core-site.xml
  32. - name: hadoop-conf
  33. configMap:
  34. name: hadoop-lustre
  35. items:
  36. - key: hadoop-lustre.conf
  37. path: hadoop.conf
  38. - name: spark-conf
  39. configMap:
  40. name: spark
  41. items:
  42. - key: spark.conf
  43. path: spark.conf
  44. affinity:
  45. nodeAffinity:
  46. requiredDuringSchedulingIgnoredDuringExecution:
  47. nodeSelectorTerms:
  48. - matchExpressions:
  49. - key: kubernetes.io/hostname
  50. operator: In
  51. values:
  52. - ns65