Installation on Minikube
Pre-requisites
-
A Minikube installation. If you need help installing it follow this guide
-
A Helm installation. You can install it following this guide
-
A bash console able execute
.sh
scripts -
gettext
package installed -
A clone of this repo
Checking requisites
If you have all the pre-requisites you should be able to execute all these commands without errors:
$> minikube version
$> helm version
$> kubectl version
Installation steps
Clone the repo
$> git clone git@github.com:intelygenz/science-toolkit.git
Create the local environment
To start the installation you can use the script <repo_root>/local_env.sh
. This script will take care of the following steps:
- start a Minikube profile named
toolkit
with this features (*):- 4 Gb of RAM
- 4 CPUs
- 40 Gb of disk
- Kubernetes installation v1.15.4
- setup helm dependencies needed by the science-toolkit chart
- deploy a helm release on
toolkit
namespace - show information on how to access it
(*) You can change these features to your needs by editing scripts/minikube_start.sh
The output should look like:
π [toolkit] minikube v1.7.2 on Ubuntu 19.04
βͺ MINIKUBE_PROFILE=toolkit
β¨ Using the virtualbox driver based on existing profile
π Kubernetes 1.17.2 is now available. If you would like to upgrade, specify: --kubernetes-version=1.17.2
β Reconfiguring existing host ...
π Starting existing virtualbox VM for "toolkit" ...
π³ Preparing Kubernetes v1.15.4 on Docker 19.03.5 ...
βͺ apiserver.authorization-mode=RBAC
π Launching Kubernetes ...
π Enabling addons: dashboard, default-storageclass, ingress, metrics-server, registry, storage-provisioner
π Done! kubectl is now configured to use "toolkit"
β οΈ /snap/bin/kubectl is version 1.17.3, and is incompatible with Kubernetes 1.15.4. You will need to update /snap/bin/kubectl or use 'minikube kubectl' to connect with this cluster
π The 'ingress' addon is enabled
π The 'dashboard' addon is enabled
π The 'registry' addon is enabled
π The 'storage-provisioner' addon is enabled
π The 'metrics-server' addon is enabled
Replacing env to './user-tools-operator/helm-charts/usertools/templates/statefulset.yaml.tpl' into './user-tools-operator/helm-charts/usertools/templates/statefulset.yaml'
Replacing env to './helm/science-toolkit-lite/values.yaml.tpl' into './helm/science-toolkit-lite/values.yaml'
Replacing env to './helm/science-toolkit/values.yaml.tpl' into './helm/science-toolkit/values.yaml'
Replacing env to './tmp/science-toolkit/values.yaml.tpl' into './tmp/science-toolkit/values.yaml'
"stable" has been added to your repositories
ποΈ Create Namespace if not exist...
namespace/toolkit configured
π¦ Applying helm chart...
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "science-toolkit" chart repository
...Successfully got an update from the "rimusz" chart repository
...Successfully got an update from the "stable" chart repository
...Successfully got an update from the "charts.gitpod.io" chart repository
Update Complete. βHappy Helming!β
Saving 2 charts
Downloading jupyterhub from repo https://jupyterhub.github.io/helm-chart/
Downloading minio from repo https://charts.helm.sh/stable
Deleting outdated charts
Release "toolkit" does not exist. Installing it now.
NAME: toolkit
LAST DEPLOYED: Thu Mar 19 09:17:02 2020
NAMESPACE: toolkit
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
----
π Konstellation Science Toolkit Installed
##############################
Your release is named toolkit.
Now open your browser at: π http://app.toolkit.__YOUR_MINIKUBE_IP__.nip.io
Thank you for installing SCIENCE-TOOLKIT.
----
βοΈ Done.
Checking installation
Once you installed the science toolkit chart you can access it locally in your browser.
Open the url http://app.toolkit.$YOUR_MINIKUBE_IP.nip.io
When you open it, it would redirect you to Gitea to authenticate. The default credentials are:
- user:
toolkit-admin
- password:
123456
Note: Change $YOUR_MINIKUBE_IP for the actual IP of the toolkit profile of minikube. If you need to get the IP run minikube ip -p toolkit