statefulset-statestore.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. apiVersion: apps/v1
  2. kind: StatefulSet
  3. metadata:
  4. name: impala-catalog-{{ .Values.name }}
  5. spec:
  6. serviceName: impala-catalog-{{ .Values.name }}
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. name: impala-catalog-{{ .Values.name }}
  11. template:
  12. metadata:
  13. labels:
  14. name: impala-catalog-{{ .Values.name }}
  15. spec:
  16. containers:
  17. - name: impala-catalog-{{ .Values.name }}
  18. image: {{ .Values.registry }}/impala-catalog:{{ .Values.tag }}
  19. imagePullPolicy: Always
  20. resources:
  21. requests:
  22. memory: "1024Mi"
  23. cpu: "1500m"
  24. limits:
  25. memory: "1024Mi"
  26. cpu: "1500m"
  27. ports:
  28. - containerPort: 26000
  29. name: im-ct
  30. protocol: TCP
  31. - containerPort: 24000
  32. name: im-ss
  33. protocol: TCP
  34. - containerPort: 25020
  35. name: im-ct-web
  36. protocol: TCP
  37. env:
  38. - name: IMPALA_STATESTORE
  39. value: impala-statestore-{{ .Values.name }}
  40. volumeMounts:
  41. - name: config-volume
  42. mountPath: /etc/alternatives/impala-conf/hdfs-site.xml
  43. subPath: hdfs-site.xml
  44. - name: config-volume
  45. mountPath: /etc/alternatives/impala-conf/core-site.xml
  46. subPath: core-site.xml
  47. - name: config-volume
  48. mountPath: /etc/alternatives/impala-conf/hive-site.xml
  49. subPath: hive-site.xml
  50. volumes:
  51. - name: config-volume
  52. configMap:
  53. name: impala-config