Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configurable worker system info host path #93

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api/v1alpha1/alluxiocluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ type WorkerSpec struct {
Affinity corev1.Affinity `json:"affinity,omitempty" yaml:"affinity,omitempty"`
Count int `json:"count,omitempty" yaml:"count,omitempty"`
Env map[string]string `json:"env,omitempty" yaml:"env,omitempty"`
HostPathForSystemInfo string `json:"hostPathForSystemInfo,omitempty" yaml:"hostPathForSystemInfo,omitempty"`
JvmOptions []string `json:"jvmOptions,omitempty" yaml:"jvmOptions,omitempty"`
LimitOneWorkerPerNode bool `json:"limitOneWorkerPerNode,omitempty" yaml:"limitOneWorkerPerNode,omitempty"`
LivenessProbe ProbeSpec `json:"livenessProbe,omitempty" yaml:"livenessProbe,omitempty"`
Expand All @@ -122,7 +123,7 @@ type PagestoreSpec struct {

type MetastoreSpec struct {
Enabled *bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
HostPath *bool `json:"hostPath,omitempty" yaml:"hostPath,omitempty"`
HostPath string `json:"hostPath,omitempty" yaml:"hostPath,omitempty"`
Size string `json:"size,omitempty" yaml:"size,omitempty"`
StorageClass string `json:"storageClass,omitempty" yaml:"storageClass,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4061,6 +4061,8 @@ spec:
additionalProperties:
type: string
type: object
hostPathForSystemInfo:
type: string
jvmOptions:
items:
type: string
Expand Down
2 changes: 1 addition & 1 deletion deploy/charts/alluxio/templates/worker/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ spec:
name: {{ $fullName }}-alluxio-conf
- name: {{ $alluxioWorkerSysInfoVolumeName }}
hostPath:
path: {{ $alluxioWorkerSysInfoDirPath }}
path: {{ .Values.worker.hostPathForSystemInfo }}
type: DirectoryOrCreate
{{- if .Values.hostPathForLogging }}
- name: {{ $alluxioWorkerLogVolumeName }}
Expand Down
2 changes: 2 additions & 0 deletions deploy/charts/alluxio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ journal:
worker:
# Number of workers to launch
count: 1
# The path on the host machine for system information
hostPathForSystemInfo: /mnt/alluxio/system-info
# The path on the host machine for storing worker log
hostPathForLogs: /mnt/alluxio/logs/worker
# Whether to limit at most one Alluxio worker per k8s node.
Expand Down
2 changes: 2 additions & 0 deletions resources/crds/k8s-operator.alluxio.com_alluxioclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4061,6 +4061,8 @@ spec:
additionalProperties:
type: string
type: object
hostPathForSystemInfo:
type: string
jvmOptions:
items:
type: string
Expand Down