statefulset-coordinator.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. apiVersion: apps/v1
  2. kind: StatefulSet
  3. metadata:
  4. name: impala-coordinator-{{ .Values.name }}
  5. spec:
  6. serviceName: impala-coordinator-{{ .Values.name }}
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. name: impala-coordinator-{{ .Values.name }}
  11. template:
  12. metadata:
  13. labels:
  14. name: impala-coordinator-{{ .Values.name }}
  15. spec:
  16. containers:
  17. - name: impala-coordinator-{{ .Values.name }}
  18. image: {{ .Values.registry }}/impala-server:{{ .Values.tag }}
  19. imagePullPolicy: Always
  20. command: ['bash', '-c', '/opt/hadoop/run-coordinator.sh']
  21. resources:
  22. requests:
  23. memory: "4096Mi"
  24. cpu: "2000m"
  25. limits:
  26. memory: "4096Mi"
  27. cpu: "2000m"
  28. ports:
  29. - containerPort: 21000
  30. name: im-sr
  31. protocol: TCP
  32. - containerPort: 22000
  33. name: im-sr2x
  34. protocol: TCP
  35. - containerPort: 23000
  36. name: im-sr3
  37. protocol: TCP
  38. - containerPort: 25000
  39. name: im-sr-web
  40. protocol: TCP
  41. env:
  42. - name: IMPALA_STATESTORE
  43. value: impala-statestore-{{ .Values.name }}
  44. - name: IMPALA_CATALOG
  45. value: impala-catalog-{{ .Values.name }}
  46. volumeMounts:
  47. - name: config-volume
  48. mountPath: /etc/alternatives/impala-conf/hdfs-site.xml
  49. subPath: hdfs-site.xml
  50. - name: config-volume
  51. mountPath: /etc/alternatives/impala-conf/core-site.xml
  52. subPath: core-site.xml
  53. volumes:
  54. - name: config-volume
  55. configMap:
  56. name: impala-config