# load the image to local$dockerload-ialluxio-k8s-operator-1.2.0-docker.tar# retag the image with your private registry$dockertagalluxio/k8s-operator:1.2.0<YOUR.PRIVATE.REGISTRY.HERE>/alluxio-operator:1.2.0# push to the remote registry$dockerpush<YOUR.PRIVATE.REGISTRY.HERE>/alluxio-operator:1.2.0
为 operator 解压 helm chart
# the command will extract the files to the directory alluxio-operator/$tarzxfalluxio-operator-1.2.0-helmchart.tgz
# the last parameter is the directory to the helm chart$helminstalloperator-falluxio-operator/alluxio-operator.yamlalluxio-operatorNAME:operatorLASTDEPLOYED:WedMay1517:32:342024NAMESPACE:defaultSTATUS:deployedREVISION:1TESTSUITE:None# verify if the operator is running as expected$kubectlgetpod-nalluxio-operatorNAMEREADYSTATUSRESTARTSAGEalluxio-controller-6b449d8b68-njx7f1/1Running045soperator-alluxio-csi-controller-765f9fd65-drjm42/2Running045soperator-alluxio-csi-nodeplugin-ks2622/2Running045soperator-alluxio-csi-nodeplugin-vk8r42/2Running045sufs-controller-65f7c84cbd-kll8q1/1Running045s
部署 Alluxio
$kubectlcreate-falluxio-operator/alluxio-cluster.yamlalluxiocluster.k8s-operator.alluxio.com/alluxiocreated# the cluster will be starting$kubectlgetpodNAMEREADYSTATUSRESTARTSAGEalluxio-etcd-00/1ContainerCreating07salluxio-etcd-10/1ContainerCreating07salluxio-etcd-20/1ContainerCreating07salluxio-master-00/1Init:0/107salluxio-monitor-grafana-847fd46f4b-84wgg0/1Running07salluxio-monitor-prometheus-778547fd75-rh6r61/1Running07salluxio-worker-76c846bfb6-2jkmr0/1Init:0/207salluxio-worker-76c846bfb6-nqldm0/1Init:0/207s# check the status of the cluster$kubectlgetalluxioclusterNAMECLUSTERPHASEAGEalluxioReady2m18s# and check the running pods after the cluster is ready$kubectlgetpodNAMEREADYSTATUSRESTARTSAGEalluxio-etcd-01/1Running02m3salluxio-etcd-11/1Running02m3salluxio-etcd-21/1Running02m3salluxio-master-01/1Running02m3salluxio-monitor-grafana-7b9477d66-mmcc51/1Running02m3salluxio-monitor-prometheus-78dbb89994-xxr4c1/1Running02m3salluxio-worker-85fd45db46-c7n9p1/1Running02m3salluxio-worker-85fd45db46-sqv2c1/1Running02m3s
$kubectlcreate-falluxio-operator/ufs.yamlunderfilesystem.k8s-operator.alluxio.com/alluxio-s3created# verify the status of the storage$kubectlgetufsNAMEPHASEAGEalluxio-s3Ready46s# also check the mount table via Alluxio command line$kubectlexec-italluxio-master-0--alluxiomountlist2>/dev/nullListingallmountpointss3://my-bucket/path/to/mount on /s3/ properties={s3a.secretKey=xxx, alluxio.underfs.s3.region=us-east-1, s3a.accessKeyId=xxx}