hue.yaml 817 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: hue-config
  5. data:
  6. hue-ini: |
  7. [impala]
  8. server_host=hostname.com
  9. ---
  10. apiVersion: v1
  11. kind: ReplicationController
  12. metadata:
  13. name: hue
  14. spec:
  15. replicas: 1
  16. template:
  17. metadata:
  18. labels:
  19. app: hue
  20. spec:
  21. containers:
  22. - name: hue
  23. image: gethue/hue:latest
  24. imagePullPolicy: Always
  25. ports:
  26. - containerPort: 8888
  27. volumeMounts:
  28. - name: config-volume
  29. mountPath: /usr/share/hue/desktop/conf/z-hue.ini
  30. subPath: hue-ini
  31. volumes:
  32. - name: config-volume
  33. configMap:
  34. name: hue-config
  35. ---
  36. apiVersion: v1
  37. kind: Service
  38. metadata:
  39. name: hue
  40. spec:
  41. selector:
  42. app: hue
  43. ports:
  44. - name: hue
  45. port: 8888
  46. type: NodePort