Browse Source

HUE-8744 [k8s] Clean-up bunch of typos in the configs

Romain 6 năm trước cách đây
mục cha
commit
93e3e51542

+ 3 - 1
tools/kubernetes/helm/config.yaml

@@ -1,5 +1,7 @@
-registry: "docker.io/gethue/hue"
+registry: "gethue/hue"
 tag: "latest"
+impala:
+  server_host: "localhost"
 aws:
   accessKeyId: ""
   secretAccessKey: ""

+ 14 - 14
tools/kubernetes/helm/hue/README.md

@@ -5,27 +5,27 @@ This is a MVP to get an Helm chart for Hue.
 
 ## Install
 
-```
-cd tools/kubernetes/helm/hue
-```
+    cd tools/kubernetes/helm/hue
 
 If needed, copy [values.yaml](values.yaml) and edit and run:
 
-```
-helm install hue -f values.yaml
-```
+    cp config.yaml values.yaml
+    helm install hue -f values.yaml -n hue
+
 
 And follow-up the instructions printed on the screen.
 
-E.g. by default it comes with a temporary DB and ingres load balancer:
+Not that by default Hue comes with a temporary DB and ingress load balancer:
+
+    kubectl get pods
+    NAME                                          READY   STATUS    RESTARTS   AGE
+    hue-4n2ck                                     1/1       Running   0          3h
+    hue-postgres-5jg77                            1/1       Running   0          12d
+    traefik-ingress-controller-6fbd76695d-nkxnz   1/1       Running   0          12d
+
+## Un-install
 
-```
-kubectl get pods
-NAME                                          READY   STATUS    RESTARTS   AGE
-hue-4n2ck                                     1/1       Running   0          3h
-hue-postgres-5jg77                            1/1       Running   0          12d
-traefik-ingress-controller-6fbd76695d-nkxnz   1/1       Running   0          12d
-```
+    helm delete hue --purge
 
 ## Follow-ups
 

+ 4 - 3
tools/kubernetes/helm/hue/templates/NOTES.txt

@@ -5,14 +5,15 @@ To check the status of your installation run:
   helm list {{ .Release.Name }}
 
 
-You should be able to execute queries via:
+You should be able to execute queries by typing:
 
   kubectl port-forward svc/hue 8888:8888 &
 
-  http://localhost:8888
+Then opening-up:
 
+  http://localhost:8888
 
-Or directly:
+Or directly typing:
 
   export WEB_HOST=$(kubectl get node -o jsonpath="{.items[0].metadata.name}")
   export WEB_PORT=$(kubectl get service hue -o jsonpath="{.spec.ports[*].nodePort}" --namespace {{ .Release.Namespace }})

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

@@ -10,9 +10,9 @@ data:
     [aws]
     [[aws_accounts]]
     [[[default]]]
-    access_key_id={{ .Values.hue.awsAccessKeyId }}
-    secret_access_key={{ .Values.hue.awsSecretAccessKey }}
-    region={{ .Values.hue.awsRegion }}
+    access_key_id={{ .Values.aws.awsAccessKeyId }}
+    secret_access_key={{ .Values.aws.awsSecretAccessKey }}
+    region={{ .Values.aws.awsRegion }}
 ---
 apiVersion: v1
 kind: ReplicationController
@@ -27,7 +27,7 @@ spec:
     spec:
       containers:
         - name: hue
-          image: {{ .Values.registry }}/hue:{{ .Values.tag }}
+          image: {{ .Values.registry }}:{{ .Values.tag }}
           imagePullPolicy: Always
           ports:
             - containerPort: 8888

+ 1 - 1
tools/kubernetes/yaml/hue/configmap.yaml

@@ -6,7 +6,7 @@ data:
   hue-ini: |
     [desktop]
       [[task_server]]
-        enabled=true
+        enabled=false
 
     [impala]
       server_host=hostname.com