| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: hue-config
- data:
- hue-ini: |
- [metadata]
- [[k8s]]
- api_url={{ .Values.hue.provisionerApi }}
- [[prometheus]]
- api_url=http://{{ .Values.hue.prometheusHost }}/api
- [aws]
- [[aws_accounts]]
- [[[default]]]
- access_key_id={{ .Values.hue.awsAccessKeyId }}
- secret_access_key={{ .Values.hue.awsSecretAccessKey }}
- region={{ .Values.hue.awsRegion }}
- ---
- apiVersion: v1
- kind: ReplicationController
- metadata:
- name: hue
- spec:
- replicas: {{ .Values.hue.replicas }}
- template:
- metadata:
- labels:
- app: hue
- spec:
- containers:
- - name: hue
- image: {{ .Values.registry }}/hue-frontend:{{ .Values.tag }}
- imagePullPolicy: Always
- ports:
- - containerPort: 8888
- volumeMounts:
- - name: config-volume
- mountPath: /usr/share/hue/desktop/conf/z-hue.ini
- subPath: hue-ini
- volumes:
- - name: config-volume
- configMap:
- name: hue-config
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: hue
- spec:
- selector:
- app: hue
- ports:
- - name: hue
- port: 8888
- type: NodePort
- ---
- apiVersion: extensions/v1beta1
- kind: Ingress
- metadata:
- name: hue
- annotations:
- kubernetes.io/ingress.class: traefik
- spec:
- rules:
- - host: altus.{{ .Values.domain }}
- http:
- paths:
- - path: /
- backend:
- serviceName: hue
- servicePort: hue
|