hue.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: hue-config
  5. data:
  6. hue-ini: |
  7. [impala]
  8. server_host={{ .Values.impala.server_host }}
  9. [aws]
  10. [[aws_accounts]]
  11. [[[default]]]
  12. access_key_id={{ .Values.hue.awsAccessKeyId }}
  13. secret_access_key={{ .Values.hue.awsSecretAccessKey }}
  14. region={{ .Values.hue.awsRegion }}
  15. ---
  16. apiVersion: v1
  17. kind: ReplicationController
  18. metadata:
  19. name: hue
  20. spec:
  21. replicas: {{ .Values.hue.replicas }}
  22. template:
  23. metadata:
  24. labels:
  25. app: hue
  26. spec:
  27. containers:
  28. - name: hue
  29. image: {{ .Values.registry }}/hue:{{ .Values.tag }}
  30. imagePullPolicy: Always
  31. ports:
  32. - containerPort: 8888
  33. volumeMounts:
  34. - name: config-volume
  35. mountPath: /usr/share/hue/desktop/conf/z-hue.ini
  36. subPath: hue-ini
  37. volumes:
  38. - name: config-volume
  39. configMap:
  40. name: hue-config
  41. ---
  42. apiVersion: v1
  43. kind: Service
  44. metadata:
  45. name: hue
  46. spec:
  47. selector:
  48. app: hue
  49. ports:
  50. - name: hue
  51. port: 8888
  52. type: NodePort
  53. ---
  54. apiVersion: extensions/v1beta1
  55. kind: Ingress
  56. metadata:
  57. name: hue
  58. annotations:
  59. kubernetes.io/ingress.class: traefik
  60. spec:
  61. rules:
  62. - host: altus.{{ .Values.domain }}
  63. http:
  64. paths:
  65. - path: /
  66. backend:
  67. serviceName: hue
  68. servicePort: hue