Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into alluxio-container…
Browse files Browse the repository at this point in the history
…-network
  • Loading branch information
allenhaozi committed May 21, 2022
2 parents da650e1 + 00220ae commit 5600d8b
Show file tree
Hide file tree
Showing 23 changed files with 7,841 additions and 245 deletions.
86 changes: 47 additions & 39 deletions charts/alluxio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# This should not be modified in the usual case.
fullnameOverride: alluxio


## Common ##

# Docker Image
Expand All @@ -21,7 +22,7 @@ imagePullPolicy: IfNotPresent

# Create User Docker Image // TODO make it configurable
initUsers:
enabled: false
enabled: false
image: registry.cn-hangzhou.aliyuncs.com/fluid/init-users
imageTag: v0.3.0-1467caa
imagePullPolicy: IfNotPresent
Expand Down Expand Up @@ -86,11 +87,11 @@ master:
resources:
# The default xmx is 8G
limits:
# cpu: "4"
# memory: "8G"
# cpu: "4"
# memory: "8G"
requests:
# cpu: "1"
# memory: "1G"
# cpu: "1"
# memory: "1G"
ports:
embedded: 19200
rpc: 19998
Expand Down Expand Up @@ -131,11 +132,11 @@ jobMaster:
properties:
resources:
limits:
# cpu: "4"
# memory: "8G"
# cpu: "4"
# memory: "8G"
requests:
# cpu: "1"
# memory: "1G"
# cpu: "1"
# memory: "1G"
ports:
embedded: 20003
rpc: 20001
Expand All @@ -155,8 +156,8 @@ jobMaster:
journal:
# Setting journal type, "UFS" or "EMBEDDED"
# In commit 2c125dee25f8d4566ae23646a999c16c530ffbc9, in order to support master raft embeeded journal mode, change default value from UFS to EMBEDDED
# TODO (@xieydd), will support journalClaimTemplates configure the journal setting
type: "EMBEDDED"
# TODO (@xieydd), will support journalClaimTemplates configure the journal setting
type: "EMBEDDED"
ufsType: "local" # Ignored if type is "EMBEDDED". "local" or "HDFS"
folder: "/journal" # Master journal folder
# volumeType controls the type of journal volume.
Expand All @@ -180,14 +181,15 @@ apiGateway:
properties:
resources:
limits:
# cpu: "4"
# memory: "4G"
# cpu: "4"
# memory: "4G"
requests:
# cpu: "1"
# memory: "2G"
# cpu: "1"
# memory: "2G"
ports:
rest: 39999


# You can enable metastore to use ROCKS DB instead of Heap
# metastore:
# volumeType: persistentVolumeClaim # Options: "persistentVolumeClaim" or "emptyDir"
Expand All @@ -200,25 +202,26 @@ apiGateway:
# # Attributes to use when the metastore is emptyDir
# medium: ""


## Worker ##

worker:
env:
# Extra environment variables for the worker pod
# Example:
# JAVA_HOME: /opt/java
# Extra environment variables for the worker pod
# Example:
# JAVA_HOME: /opt/java
args:
- worker-only
- --no-format
# Properties for the worker component
properties:
resources:
limits:
# cpu: "4"
# memory: "4G"
# cpu: "4"
# memory: "4G"
requests:
# cpu: "1"
# memory: "2G"
# cpu: "1"
# memory: "2G"
ports:
rpc: 29999
web: 30000
Expand All @@ -240,6 +243,7 @@ worker:
# - name: myConfigMapVolume
# mountPath: /data/configmap/myConfigMapVolume/
volumes: []


jobWorker:
args:
Expand All @@ -248,11 +252,11 @@ jobWorker:
properties:
resources:
limits:
# cpu: "4"
# memory: "4G"
# cpu: "4"
# memory: "4G"
requests:
# cpu: "1"
# memory: "1G"
# cpu: "1"
# memory: "1G"
ports:
rpc: 30001
data: 30002
Expand Down Expand Up @@ -296,14 +300,14 @@ jobWorker:
# quota: 10G,10G
tieredstore:
levels:
- level: 0
alias: MEM
mediumtype: MEM
path: /dev/shm
type: emptyDir
quota: 1G
high: 0.95
low: 0.7
- level: 0
alias: MEM
mediumtype: MEM
path: /dev/shm
type: emptyDir
quota: 1G
high: 0.95
low: 0.7

# Short circuit related properties
shortCircuit:
Expand All @@ -324,6 +328,7 @@ shortCircuit:
# Attributes to use if the domain socket volume is hostPath
hostPath: "/tmp/alluxio-domain" # The hostPath directory to use


## FUSE ##

fuse:
Expand Down Expand Up @@ -351,7 +356,7 @@ fuse:
hostNetwork: true
# hostPID requires escalated privileges
hostPID: true
dnsPolicy: ""
dnsPolicy: ClusterFirstWithHostNet
user: 0
group: 0
fsGroup: 0
Expand All @@ -362,18 +367,21 @@ fuse:
mountPath: /mnt/alluxio-fuse
resources:
requests:
# cpu: "0.5"
# memory: "1G"
# cpu: "0.5"
# memory: "1G"
limits:
# cpu: "4"
# memory: "4G"
# cpu: "4"
# memory: "4G"
volumeMounts: []
# volumeMounts:
# - name: mySecretVolume
# mountPath: /data/secrets/mySecretVolume/
# - name: myConfigMapVolume
# mountPath: /data/configmap/myConfigMapVolume/
volumes: []



## HDFS Configuraions ##
# hadoopConfig:
# configMap: hdfs-configmap
Expand Down
16 changes: 8 additions & 8 deletions cmd/alluxio/app/alluxio.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,20 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package app

import (
"os"
// +kubebuilder:scaffold:imports

"github.com/fluid-cloudnative/fluid"
datav1alpha1 "github.com/fluid-cloudnative/fluid/api/v1alpha1"
alluxioctl "github.com/fluid-cloudnative/fluid/pkg/controllers/v1alpha1/alluxio"
"github.com/fluid-cloudnative/fluid/pkg/ddc/alluxio"
"github.com/fluid-cloudnative/fluid/pkg/ddc/base"
"github.com/fluid-cloudnative/fluid/pkg/ddc/base/portallocator"
"github.com/fluid-cloudnative/fluid/pkg/utils"
"github.com/spf13/cobra"
zapOpt "go.uber.org/zap"
"go.uber.org/zap/zapcore"
Expand All @@ -29,14 +37,6 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/controller"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

"github.com/fluid-cloudnative/fluid"
datav1alpha1 "github.com/fluid-cloudnative/fluid/api/v1alpha1"
alluxioctl "github.com/fluid-cloudnative/fluid/pkg/controllers/v1alpha1/alluxio"
"github.com/fluid-cloudnative/fluid/pkg/ddc/alluxio"
"github.com/fluid-cloudnative/fluid/pkg/ddc/base"
"github.com/fluid-cloudnative/fluid/pkg/ddc/base/portallocator"
"github.com/fluid-cloudnative/fluid/pkg/utils"
)

var (
Expand Down
3 changes: 1 addition & 2 deletions cmd/alluxio/app/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ limitations under the License.
package app

import (
"github.com/spf13/cobra"

"github.com/fluid-cloudnative/fluid"
"github.com/spf13/cobra"
)

var (
Expand Down
11 changes: 5 additions & 6 deletions cmd/csi/app/csi.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,16 @@ import (
"os"
"time"

"github.com/golang/glog"
"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
ctrl "sigs.k8s.io/controller-runtime"

"github.com/fluid-cloudnative/fluid"
datav1alpha1 "github.com/fluid-cloudnative/fluid/api/v1alpha1"
"github.com/fluid-cloudnative/fluid/pkg/csi"
"github.com/fluid-cloudnative/fluid/pkg/csi/config"
utilfeature "github.com/fluid-cloudnative/fluid/pkg/utils/feature"
"github.com/golang/glog"
"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
ctrl "sigs.k8s.io/controller-runtime"
)

var (
Expand Down
3 changes: 1 addition & 2 deletions cmd/csi/app/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ limitations under the License.
package app

import (
"github.com/spf13/cobra"

"github.com/fluid-cloudnative/fluid"
"github.com/spf13/cobra"
)

var (
Expand Down
7 changes: 4 additions & 3 deletions cmd/csi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ limitations under the License.
package main

import (
"os"

"github.com/fluid-cloudnative/fluid/cmd/csi/app"
"os"
)

func main() {
cmd := app.NewCSICommand()

if err := cmd.Execute(); err != nil {
app.ErrorAndExit(err)
os.Exit(1)
}

os.Exit(0)
}
17 changes: 8 additions & 9 deletions cmd/dataset/app/dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ package app
import (
"os"

"github.com/spf13/cobra"
zapOpt "go.uber.org/zap"
"go.uber.org/zap/zapcore"
"k8s.io/apimachinery/pkg/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

"github.com/fluid-cloudnative/fluid"
datav1alpha1 "github.com/fluid-cloudnative/fluid/api/v1alpha1"
databackupctl "github.com/fluid-cloudnative/fluid/pkg/controllers/v1alpha1/databackup"
Expand All @@ -36,6 +27,14 @@ import (
"github.com/fluid-cloudnative/fluid/pkg/ddc/alluxio"
"github.com/fluid-cloudnative/fluid/pkg/ddc/base"
"github.com/fluid-cloudnative/fluid/pkg/utils"
"github.com/spf13/cobra"
zapOpt "go.uber.org/zap"
"go.uber.org/zap/zapcore"
"k8s.io/apimachinery/pkg/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
)

var (
Expand Down
3 changes: 1 addition & 2 deletions cmd/dataset/app/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ limitations under the License.
package app

import (
"github.com/spf13/cobra"

"github.com/fluid-cloudnative/fluid"
"github.com/spf13/cobra"
)

var (
Expand Down
18 changes: 9 additions & 9 deletions cmd/jindo/app/jindo.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ package app
import (
"os"

"github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx"

"github.com/fluid-cloudnative/fluid"
datav1alpha1 "github.com/fluid-cloudnative/fluid/api/v1alpha1"
jindoctl "github.com/fluid-cloudnative/fluid/pkg/controllers/v1alpha1/jindo"
"github.com/fluid-cloudnative/fluid/pkg/ddc/base"
"github.com/fluid-cloudnative/fluid/pkg/ddc/base/portallocator"
"github.com/fluid-cloudnative/fluid/pkg/ddc/jindo"
"github.com/fluid-cloudnative/fluid/pkg/utils"
"github.com/spf13/cobra"
zapOpt "go.uber.org/zap"
"go.uber.org/zap/zapcore"
Expand All @@ -28,15 +37,6 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/controller"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

"github.com/fluid-cloudnative/fluid"
datav1alpha1 "github.com/fluid-cloudnative/fluid/api/v1alpha1"
jindoctl "github.com/fluid-cloudnative/fluid/pkg/controllers/v1alpha1/jindo"
"github.com/fluid-cloudnative/fluid/pkg/ddc/base"
"github.com/fluid-cloudnative/fluid/pkg/ddc/base/portallocator"
"github.com/fluid-cloudnative/fluid/pkg/ddc/jindo"
"github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx"
"github.com/fluid-cloudnative/fluid/pkg/utils"
)

var (
Expand Down
3 changes: 1 addition & 2 deletions cmd/jindo/app/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ limitations under the License.
package app

import (
"github.com/spf13/cobra"

"github.com/fluid-cloudnative/fluid"
"github.com/spf13/cobra"
)

var (
Expand Down
1 change: 1 addition & 0 deletions cmd/jindo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
)

func main() {

command := app.NewJindoFSCommand()
if err := command.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "%s", err.Error())
Expand Down
Loading

0 comments on commit 5600d8b

Please sign in to comment.