hue.yaml 1.4 KB

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