浏览代码

HUE-8743 [k8s] Split Hue yaml into different files

Romain 6 年之前
父节点
当前提交
425773e831
共有 3 个文件被更改,包括 11 次插入53 次删除
  1. 6 4
      tools/kubernetes/README.md
  2. 5 3
      tools/kubernetes/yaml/README.md
  3. 0 46
      tools/kubernetes/yaml/hue.yaml

+ 6 - 4
tools/kubernetes/README.md

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

+ 5 - 3
tools/kubernetes/yaml/README.md

@@ -1,6 +1,8 @@
 
-# How to run and remove
+# How to install
 
-    kubectl apply -f hue.yaml
+    kubectl apply -f hue/
 
-    kubectl delete -f hue.yaml
+# How to uninstall
+
+    kubectl delete -f hue/

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

@@ -1,46 +0,0 @@
-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