فهرست منبع

HUE-8744 [kubernetes] Add basic Hue YAML configuration

Romain 6 سال پیش
والد
کامیت
403191c8d5

+ 2 - 2
tools/kubernetes/README.md

@@ -10,7 +10,7 @@ Assuming you have a Kubernetes cluster configured with Helm installed and images
 * [Helm](helm)
    * [Hue](helm/hue)
 * YAML
-   * Hue (TBD)
+   * [Hue](yaml/hue.yaml)
    * NGINX (TBD)
    * Task Server (TBD)
 * [Container Images](/tools/docker)
@@ -72,4 +72,4 @@ HTTP LoadBalancer. This avoids creating global static ips.
 
 ## Images
 
-All the images can currently can be built via [Docker](/tools/docker).
+All the images are on Docker Hub or can be built via Docker at [/tools/docker](/tools/docker).

+ 2 - 2
tools/kubernetes/helm/config.yaml

@@ -1,5 +1,5 @@
-registry: "docker-registry.infra.cloudera.com/cloudera/datawarehouse"
-tag: "v2"
+registry: "docker.io/gethue/hue"
+tag: "latest"
 aws:
   accessKeyId: ""
   secretAccessKey: ""

+ 1 - 1
tools/kubernetes/helm/hue/Chart.yaml

@@ -1,5 +1,5 @@
 name: hue
-description: Hue SQL Data Warehouse Editor
+description: Hue SQL Cloud Editor
 version: 1.0.0
 appVersion: "1.0"
 apiVersion: v1

+ 1 - 1
tools/kubernetes/helm/hue/templates/hue.yaml

@@ -60,7 +60,7 @@ metadata:
     kubernetes.io/ingress.class: traefik
 spec:
   rules:
-  - host: altus.{{ .Values.domain }}
+  - host: {{ .Values.domain }}
     http:
       paths:
       - path: /

+ 6 - 0
tools/kubernetes/yaml/README.md

@@ -0,0 +1,6 @@
+
+# How to run and remove
+
+    kubectl apply -f hue.yaml
+
+    kubectl delete -f hue.yaml

+ 46 - 0
tools/kubernetes/yaml/hue.yaml

@@ -0,0 +1,46 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: hue-config
+data:
+  hue-ini: |
+    [impala]
+    server_host=hostname.com
+---
+apiVersion: v1
+kind: ReplicationController
+metadata:
+  name: hue
+spec:
+  replicas: 1
+  template:
+    metadata:
+      labels:
+        app: hue
+    spec:
+      containers:
+        - name: hue
+          image: gethue/hue:latest
+          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