For testing purpose of Hue 5 API for now.
@@ -0,0 +1,31 @@
+{{- if .Values.hue.api.enabled -}}
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: hue-api
+ labels:
+ deployment: hue
+{{ if .Values.monitoring.enabled }}
+ annotations:
+ "sidecar.jaegertracing.io/inject": "true"
+{{ end }}
+spec:
+ selector:
+ matchLabels:
+ pod: hue-api
+ replicas: {{ .Values.hue.replicas }}
+ template:
+ metadata:
+ spec:
+ containers:
+ - name: hue
+ image: gethue/compose:latest
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 8005
+ resources:
+ requests:
+ cpu: "25m"
+{{- end -}}
@@ -22,6 +22,12 @@ spec:
- host: {{ .Values.ingress.domain }}
http:
paths:
+ {{ if .Values.hue.api.enabled }}
+ - backend:
+ serviceName: hue-api
+ servicePort: 8005
+ path: /api(.*)
+ {{- end -}}
- backend:
serviceName: hue-balancer
servicePort: 80
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Service
+ - name: hue-api
+ port: 8005
+ type: NodePort
@@ -15,6 +15,8 @@ hue:
#password_script=echo ${DATABASE_PASSWORD}
name: "hue"
storageName: "microk8s-hostpath"
+ api:
+ enabled: false
interpreters: |
[[[postgresql]]]
name = postgresql