Quick Start
This document mainly describes how to deploy Fluid with Helm, and use Fluid to create a dataset and speed up your application.
Requirements
-
Kubernetes 1.18+
If you don't have a Kubernetes now, we highly recommend you use a cloud Kubernetes service. Usually, with a few steps, you can get your own Kubernetes Cluster. Here's some of the certified cloud Kubernetes services:
Note: While convenient, Minikube is not recommended to deploy Fluid due to its limited functionalities.
-
Kubectl 1.18+
Please make sure your kubectl is properly configured to interact with your Kubernetes environment.
-
In the following steps, we'll deploy Fluid with Helm 3
Deploy Fluid
-
Create namespace for Fluid
$ kubectl create ns fluid-system -
Add Fluid repository to Helm repos and keep it up-to-date
$ helm repo add fluid https://fluid-cloudnative.github.io/charts
$ helm repo update -
Deploy Fluid with Helm
$ helm install fluid fluid/fluid
NAME: fluid
LAST DEPLOYED: Tue Jul 7 11:22:07 2020
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None -
Check running status of Fluid
$ kubectl get po -n fluid-system
NAME READY STATUS RESTARTS AGE
alluxioruntime-controller-64948b68c9-zzsx2 1/1 Running 0 108s
csi-nodeplugin-fluid-2mfcr 2/2 Running 0 108s
csi-nodeplugin-fluid-l7lv6 2/2 Running 0 108s
dataset-controller-5465c4bbf9-5ds5p 1/1 Running 0 108s
Create a Dataset
Fluid provides cloud-native data acceleration and management capabilities, and use dataset as a high-level abstraction to facilitate user management. Here we will show you how to create a dataset with Fluid.
-
Create a Dataset object through the CRD file, which describes the source of the dataset.
$ cat<<EOF >dataset.yaml
apiVersion: data.fluid.io/v1alpha1
kind: Dataset
metadata:
name: demo
spec:
mounts:
- mountPoint: https://mirrors.bit.edu.cn/apache/spark/
name: spark
EOFkubectl create -f dataset.yaml