| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: hue
- labels:
- deployment: hue
- {{ if .Values.monitoring.enabled }}
- annotations:
- "sidecar.jaegertracing.io/inject": "true"
- {{ end }}
- spec:
- selector:
- matchLabels:
- pod: hue
- replicas: {{ .Values.hue.replicas }}
- template:
- metadata:
- labels:
- pod: hue
- spec:
- containers:
- - name: hue
- image: {{ .Values.image.registry }}/hue:{{ .Values.image.tag }}
- imagePullPolicy: {{ .Values.image.pullPolicy }}
- ports:
- - containerPort: 8888
- volumeMounts:
- - name: config-volume
- mountPath: /usr/share/hue/desktop/conf/z-hue.ini
- subPath: hue-ini
- - name: config-volume-extra
- mountPath: /usr/share/hue/desktop/conf/zz-hue.ini
- subPath: hue-ini
- readinessProbe:
- httpGet:
- path: /desktop/debug/is_alive
- port: 8888
- initialDelaySeconds: 3
- periodSeconds: 3
- failureThreshold: 30
- {{ if .Values.balancer.enabled }}
- - name: nginx
- image: {{ .Values.image.registry }}/nginx:{{ .Values.image.tag }}
- imagePullPolicy: {{ .Values.image.pullPolicy }}
- ports:
- - containerPort: 80
- volumeMounts:
- - name: nginx-config
- mountPath: /etc/nginx/sites-available/hue
- subPath: hue
- {{ end }}
- volumes:
- - name: config-volume
- configMap:
- name: hue-config
- - name: config-volume-extra
- configMap:
- name: hue-config-extra
- {{ if .Values.balancer.enabled }}
- - name: nginx-config
- configMap:
- name: nginx-config
- {{ end }}
|