deployment-hue.yaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: hue
  5. labels:
  6. deployment: hue
  7. {{ if .Values.monitoring.enabled }}
  8. annotations:
  9. "sidecar.jaegertracing.io/inject": "true"
  10. {{ end }}
  11. spec:
  12. selector:
  13. matchLabels:
  14. pod: hue
  15. replicas: {{ .Values.hue.replicas }}
  16. template:
  17. metadata:
  18. labels:
  19. pod: hue
  20. annotations:
  21. checksum/config: {{ include (print $.Template.BasePath "/configmap-hue-extra.yaml") . | sha256sum }}
  22. {{- with .Values.podAnnotations }}
  23. {{ toYaml . | indent 8 }}
  24. {{- end }}
  25. spec:
  26. containers:
  27. - name: hue
  28. image: {{ .Values.image.registry }}/hue:{{ .Values.image.tag }}
  29. imagePullPolicy: {{ .Values.image.pullPolicy }}
  30. ports:
  31. - containerPort: 8888
  32. resources:
  33. requests:
  34. # memory: "350Mi"
  35. cpu: "50m"
  36. volumeMounts:
  37. - name: config-volume
  38. mountPath: /usr/share/hue/desktop/conf/z-hue.ini
  39. subPath: hue-ini
  40. - name: config-volume-extra
  41. mountPath: /usr/share/hue/desktop/conf/zz-hue.ini
  42. subPath: hue-ini
  43. readinessProbe:
  44. httpGet:
  45. path: /desktop/debug/is_alive
  46. port: 8888
  47. initialDelaySeconds: 3
  48. periodSeconds: 3
  49. failureThreshold: 30
  50. {{ if .Values.balancer.enabled }}
  51. - name: nginx
  52. image: {{ .Values.image.registry }}/nginx:{{ .Values.image.tag }}
  53. imagePullPolicy: {{ .Values.image.pullPolicy }}
  54. ports:
  55. - containerPort: 80
  56. resources:
  57. requests:
  58. # memory: "64Mi"
  59. cpu: "20m"
  60. volumeMounts:
  61. - name: nginx-config
  62. mountPath: /etc/nginx/sites-available/hue
  63. subPath: hue
  64. {{ end }}
  65. volumes:
  66. - name: config-volume
  67. configMap:
  68. name: hue-config
  69. - name: config-volume-extra
  70. configMap:
  71. name: hue-config-extra
  72. {{ if .Values.balancer.enabled }}
  73. - name: nginx-config
  74. configMap:
  75. name: nginx-config
  76. {{ end }}