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 properties to individual Alluxio components #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
12 changes: 12 additions & 0 deletions deploy/charts/alluxio/templates/helpers/_alluxio-env.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ See the NOTICE file distributed with this work for information regarding copyrig
{{- define "alluxio.master.env" -}}
{{- $masterJavaOpts := list }}
{{- $masterJavaOpts = print "-Dalluxio.master.hostname=${ALLUXIO_MASTER_HOSTNAME}" | append $masterJavaOpts }}
{{- range $key, $val := .Values.master.properties }}
{{- $masterJavaOpts = printf "-D%v=%v" $key $val | append $masterJavaOpts }}
{{- end }}
{{- if .Values.master.jvmOptions }}
{{- $masterJavaOpts = concat $masterJavaOpts .Values.master.jvmOptions }}
{{- end }}
Expand All @@ -27,6 +30,9 @@ See the NOTICE file distributed with this work for information regarding copyrig
{{- define "alluxio.worker.env" -}}
{{- $workerJavaOpts := list }}
{{- $workerJavaOpts = print "-Dalluxio.worker.hostname=${ALLUXIO_WORKER_HOSTNAME}" | append $workerJavaOpts }}
{{- range $key, $val := .Values.worker.properties }}
{{- $workerJavaOpts = printf "-D%v=%v" $key $val | append $workerJavaOpts }}
{{- end }}
{{- if .Values.worker.jvmOptions }}
{{- $workerJavaOpts = concat $workerJavaOpts .Values.worker.jvmOptions }}
{{- end }}
Expand All @@ -40,6 +46,9 @@ See the NOTICE file distributed with this work for information regarding copyrig
{{- $proxyJavaOpts := list }}
{{- if .Values.proxy.enabled }}
{{- $proxyJavaOpts = print "-Dalluxio.user.hostname=${ALLUXIO_CLIENT_HOSTNAME}" | append $proxyJavaOpts }}
{{- range $key, $val := .Values.proxy.properties }}
{{- $proxyJavaOpts = printf "-D%v=%v" $key $val | append $proxyJavaOpts }}
{{- end }}
{{- if .Values.proxy.jvmOptions }}
{{- $proxyJavaOpts = concat $proxyJavaOpts .Values.proxy.jvmOptions }}
{{- end }}
Expand All @@ -54,6 +63,9 @@ See the NOTICE file distributed with this work for information regarding copyrig
{{- $fuseJavaOpts := list }}
{{- if .Values.fuse.enabled }}
{{- $fuseJavaOpts = print "-Dalluxio.user.hostname=${ALLUXIO_CLIENT_HOSTNAME}" | append $fuseJavaOpts }}
{{- range $key, $val := .Values.fuse.properties }}
{{- $fuseJavaOpts = printf "-D%v=%v" $key $val | append $fuseJavaOpts }}
{{- end }}
{{- if .Values.fuse.jvmOptions }}
{{- $fuseJavaOpts = concat $fuseJavaOpts .Values.fuse.jvmOptions }}
{{- end }}
Expand Down
8 changes: 8 additions & 0 deletions deploy/charts/alluxio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ master:
hostPathForLogs: /mnt/alluxio/logs/master
# Number of master deployed. For high-availability mode set this to an odd number > 1
count: 1
# Site properties solely for Alluxio master
properties:
# Extra environment variables for Alluxio master pods. Format:
# env:
# <key1>: <value1>
Expand Down Expand Up @@ -190,6 +192,8 @@ worker:
# Whether to limit at most one Alluxio worker per k8s node.
# Set to true if each k8s node has only one directory for Alluxio worker storage.
limitOneWorkerPerNode: true
# Site properties solely for Alluxio workers
properties:
# Extra environment variables for the Alluxio worker pods. Format:
# env:
# <key1>: <value1>
Expand Down Expand Up @@ -264,6 +268,8 @@ proxy:
enabled: false
# The path on the host machine for storing proxy log
hostPathForLogs: /mnt/alluxio/logs/proxy
# Site properties solely for Alluxio proxy
properties:
# Extra environment variables for the Alluxio proxy pods. Format:
# env:
# <key1>: <value1>
Expand Down Expand Up @@ -297,6 +303,8 @@ fuse:
enabled: false
# The path on the host machine for storing fuse log
hostPathForLogs: /mnt/alluxio/logs/fuse
# Site properties solely for Alluxio Fuse
properties:
# Extra environment variables for the Alluxio fuse pods. Format:
# env:
# <key1>: <value1>
Expand Down