Browse Source

[k8s] Refresh to work easily with helm3 and publick repo (#2009)

- [lib] Bump dahpne as needed by new channels
- [k8s] Refresh to work easily with helm3 and publick repo
Romain Rigaux 4 years ago
parent
commit
04411c6344

+ 1 - 0
desktop/core/requirements.txt

@@ -11,6 +11,7 @@ configobj==5.0.6
 cryptography==3.3.2
 django-auth-ldap==2.3.0
 Django==3.1.8
+daphne==3.0.2
 django-axes==5.13.0
 django-celery-beat==1.4.0
 django_celery_results==1.0.4

+ 1 - 1
tools/docker/hue/README.md

@@ -168,7 +168,7 @@ Directly from Github source:
 
 Or from a cloned local Hue:
 
-    docker build . -t hue -f tools/docker/hue/Dockerfile
+    docker build . -t gethue/hue -f tools/docker/hue/Dockerfile
 
 **Note**
 

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

@@ -1,7 +1,7 @@
 apiVersion: v1
 description: Hue is an SQL Cloud Editor for Data Warehouses and Databases.
 name: hue
-version: 1.0.1
+version: 1.0.2
 appVersion: 1.0
 keywords:
 - Hue

+ 15 - 2
tools/kubernetes/helm/hue/README.md

@@ -9,7 +9,7 @@ This is an Helm chart to easily start a Hue service.
 
 View the configuration [values.yaml](values.yaml), edit if needed and run:
 
-    helm install hue -n hue
+    helm install hue hue
 
 [values.yaml](values.yaml) contains the most important parameters in the `hue` section with for example which database to use. The `ini`
 section let you add any extra [regular parameter](https://docs.gethue.com//administrator/configuration/server/).
@@ -32,7 +32,7 @@ and open-up http://localhost:8888
 
 ## Uninstall
 
-    helm delete hue --purge
+    helm delete hue
 
 ## Ingress
 
@@ -55,3 +55,16 @@ Follow https://kubernetes.github.io/ingress-nginx/deploy/#using-helm
 And set `ingress.create=true` and `ingress.type=nginx` in [values.yaml](values.yaml).
 
 For SSL, one option is to check `jetstack/cert-manager`.
+
+## Using a local registry
+
+e.g. with microk8s and helm3:
+
+    docker build . -t localhost:32000/hue:latest -f tools/docker/hue/Dockerfile
+    docker build . -t localhost:32000/nginx:latest -f tools/docker/nginx/Dockerfile --build-arg registry=localhost:32000 --build-arg tag=latest
+
+    docker push localhost:32000/hue:latest
+    docker push localhost:32000/nginx:latest
+
+    helm install hue hue --set image.registry=localhost:32000
+    helm delete hue

+ 2 - 1
tools/kubernetes/helm/hue/templates/NOTES.txt

@@ -6,7 +6,8 @@ To check the status of your installation run:
 
 
 Get the recommended URL below and start executing queries:
-{{- if ne .Values.ingress.type "nginx-ssl" -}}
+
+{{ if ne .Values.ingress.type "nginx-ssl" }}
   export WEB_HOST=$(kubectl get node -o jsonpath="{.items[0].metadata.name}")
 {{- end -}}
 

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

@@ -1,7 +1,7 @@
 image:
    registry: "gethue"
    tag: "latest"
-   pullPolicy: "IfNotPresent"
+   pullPolicy: "Always"
 hue:
   replicas: 2
   database: