deployment-hue.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. volumeMounts:
  28. - name: config-volume
  29. mountPath: /usr/share/hue/desktop/conf/z-hue.ini
  30. subPath: hue-ini
  31. - name: config-volume-extra
  32. mountPath: /usr/share/hue/desktop/conf/zz-hue.ini
  33. subPath: hue-ini
  34. readinessProbe:
  35. httpGet:
  36. path: /desktop/debug/is_alive
  37. port: 8888
  38. initialDelaySeconds: 3
  39. periodSeconds: 3
  40. failureThreshold: 30
  41. {{ if .Values.balancer.enabled }}
  42. - name: nginx
  43. image: {{ .Values.image.registry }}/nginx:{{ .Values.image.tag }}
  44. imagePullPolicy: {{ .Values.image.pullPolicy }}
  45. ports:
  46. - containerPort: 80
  47. volumeMounts:
  48. - name: nginx-config
  49. mountPath: /etc/nginx/sites-available/hue
  50. subPath: hue
  51. {{ end }}
  52. volumes:
  53. - name: config-volume
  54. configMap:
  55. name: hue-config
  56. - name: config-volume-extra
  57. configMap:
  58. name: hue-config-extra
  59. {{ if .Values.balancer.enabled }}
  60. - name: nginx-config
  61. configMap:
  62. name: nginx-config
  63. {{ end }}