replicationcontroller-hue.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. apiVersion: v1
  2. kind: ReplicationController
  3. metadata:
  4. name: hue
  5. spec:
  6. replicas: {{ .Values.hue.replicas }}
  7. template:
  8. metadata:
  9. labels:
  10. app: hue
  11. spec:
  12. containers:
  13. - name: hue
  14. image: {{ .Values.image.registry }}/hue:{{ .Values.image.tag }}
  15. imagePullPolicy: {{ .Values.image.pullPolicy }}
  16. ports:
  17. - containerPort: 8888
  18. volumeMounts:
  19. - name: config-volume
  20. mountPath: /usr/share/hue/desktop/conf/z-hue.ini
  21. subPath: hue-ini
  22. - name: config-volume-extra
  23. mountPath: /usr/share/hue/desktop/conf/zz-hue.ini
  24. subPath: hue-ini
  25. readinessProbe:
  26. httpGet:
  27. path: /desktop/debug/is_alive
  28. port: 8888
  29. initialDelaySeconds: 3
  30. periodSeconds: 3
  31. failureThreshold: 30
  32. volumes:
  33. - name: config-volume
  34. configMap:
  35. name: hue-config
  36. - name: config-volume-extra
  37. configMap:
  38. name: hue-config-extra