From 17eeeb83bafd0c447fe9a8adcce92ea13969ba8b Mon Sep 17 00:00:00 2001 From: ssz1997 Date: Wed, 28 Jun 2023 14:00:19 -0700 Subject: [PATCH] add properties to individual Alluxio components --- .../alluxio/templates/helpers/_alluxio-env.tpl | 12 ++++++++++++ deploy/charts/alluxio/values.yaml | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/deploy/charts/alluxio/templates/helpers/_alluxio-env.tpl b/deploy/charts/alluxio/templates/helpers/_alluxio-env.tpl index 5d9960cbb..ad17a4c5f 100644 --- a/deploy/charts/alluxio/templates/helpers/_alluxio-env.tpl +++ b/deploy/charts/alluxio/templates/helpers/_alluxio-env.tpl @@ -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 }} @@ -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 }} @@ -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 }} @@ -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 }} diff --git a/deploy/charts/alluxio/values.yaml b/deploy/charts/alluxio/values.yaml index 35b5d3c8a..344d2e3ec 100644 --- a/deploy/charts/alluxio/values.yaml +++ b/deploy/charts/alluxio/values.yaml @@ -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: # : @@ -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: # : @@ -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: # : @@ -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: # :