deployment-hue.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. spec:
  21. containers:
  22. - name: hue
  23. image: {{ .Values.image.registry }}/hue:{{ .Values.image.tag }}
  24. imagePullPolicy: {{ .Values.image.pullPolicy }}
  25. ports:
  26. - containerPort: 8888
  27. resources:
  28. requests:
  29. # memory: "350Mi"
  30. cpu: "50m"
  31. volumeMounts:
  32. - name: config-volume
  33. mountPath: /usr/share/hue/desktop/conf/z-hue.ini
  34. subPath: hue-ini
  35. - name: config-volume-extra
  36. mountPath: /usr/share/hue/desktop/conf/zz-hue.ini
  37. subPath: hue-ini
  38. readinessProbe:
  39. httpGet:
  40. path: /desktop/debug/is_alive
  41. port: 8888
  42. initialDelaySeconds: 3
  43. periodSeconds: 3
  44. failureThreshold: 30
  45. {{ if .Values.balancer.enabled }}
  46. - name: nginx
  47. image: {{ .Values.image.registry }}/nginx:{{ .Values.image.tag }}
  48. imagePullPolicy: {{ .Values.image.pullPolicy }}
  49. ports:
  50. - containerPort: 80
  51. resources:
  52. requests:
  53. # memory: "64Mi"
  54. cpu: "20m"
  55. volumeMounts:
  56. - name: nginx-config
  57. mountPath: /etc/nginx/sites-available/hue
  58. subPath: hue
  59. {{ end }}
  60. volumes:
  61. - name: config-volume
  62. configMap:
  63. name: hue-config
  64. - name: config-volume-extra
  65. configMap:
  66. name: hue-config-extra
  67. {{ if .Values.balancer.enabled }}
  68. - name: nginx-config
  69. configMap:
  70. name: nginx-config
  71. {{ end }}