Install on Minikube

Datalayer is available with services that makes up the Datalayer Science Platform.

The services are deployed in the Kubernetes Cluster via Helm charts.

Start Minikube

dla minikube-start

Configure Host File

sudo echo "127.0.0.1 dla-solr-zookeeper dla-solr-0.dla-solr-headless"  | sudo tee -a /etc/hosts
sudo echo "$(minikube ip) minikube.datalayer.io.local ldapadmin.minikube.datalayer.io.local dla-keycloak-http.dla-iam.svc.cluster.local"  | sudo tee -a /etc/hosts
cat /etc/hosts

Build the Docker Images

eval $(minikube docker-env) && \
  dla dsp-docker-build

Prepare Helm

# Deploy the Helm Tiller Pod.
dla helm-deploy && \
  sleep 30s && \
  dla helm-status
# Build the Helm Charts.
dla dsp-helm-build

Deploy Instrument Services

# Deploy K8S Dashboard service.
dla dsp-up k8s-dashboard
# Give some more role to k8s-dashboard-kubernetes-dashboard.
cat <<EOF | kubectl create -f -
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
  name: k8s-dashboard
  labels:
    k8s-app: k8s-dashboard
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: k8s-dashboard-kubernetes-dashboard
  namespace: kube-system
EOF
# Browse K8S Dashboard.
dla k8s-dashboard
# Deploy Kuber service.
dla dsp-up kuber
# Check Kuber service.
open http://minikube.datalayer.io.local/kuber/about/kuber.html
# Deploy Velero service.
# dla dsp-up velero

Deploy Observe Services

# Deploy the Observation services.
# dla dsp-up k8s-metrics,prometheus

Deploy Library Services

# Deploy Solr service.
dla dsp-up solr

Initialize Solr service.

# Shell 1.
$DLAHOME/src/dev/port-forward-solr.sh
# Shell 2.
$DLAHOME/src/dev/port-forward-zookeeper.sh
# Shell 3.
dla dsp-solr-init
open http://127.0.0.1:8983/solr/#/datalayer/collection-overview
# Deploy Library service.
dla dsp-up library
open http://minikube.datalayer.io.local/library

Deploy IAM Services

# Deploy LDAP Services.
dla dsp-up ldap,ldapadmin

Initialize LDAP service.

# Shell 1.
$DLAHOME/src/dev/port-forward-ldap.sh
# Shell 2.
dla dsp-ldap-init
# Deploy Keycloak service.
dla dsp-up keycloak
# Follow the steps to initialize Keycloak.
dla dsp-keycloak-init
# Check Authentication.
open http://dla-keycloak-http.dla-iam.svc.cluster.local/auth/realms/datalayer/account # eric/123
# Deploy IAM service.
dla dsp-up iam
open http://minikube.datalayer.io.local/iam
# Deploy Vault service.
# dla dsp-up vault

Deploy JupyterHub Services

# Deploy the JupyterHub service.
dla dsp-up jupyterhub
open http://minikube.datalayer.io.local/jupyterhub

Deploy UI Services

# Deploy the Studio service.
dla dsp-up explorer
open http://minikube.datalayer.io.local

Tear Down the Services

dla dsp-down explorer,jupyterhub,library,solr,iam,keycloak,ldapadmin,ldap,kuber,k8s-dashboard

results matching ""

    No results matching ""