#
# The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
# (the "License"). You may not use this work except in compliance with the License, which is
# available at www.apache.org/licenses/LICENSE-2.0
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied, as more fully set forth in the License.
#
# See the NOTICE file distributed with this work for information regarding copyright ownership.
#

apiVersion: v1
kind: ConfigMap
metadata:
  name: alluxio-config
data:
  ALLUXIO_JAVA_OPTS: |-
    -Dalluxio.master.hostname=alluxio-master -Dalluxio.master.journal.type=UFS -Dalluxio.master.journal.folder=/journal -Dalluxio.worker.data.server.domain.socket.address=/opt/domain -Dalluxio.worker.data.server.domain.socket.as.uuid=true -Dalluxio.worker.memory.size={{ .Values.resources.worker.requests.memory }} -Dalluxio.worker.rpc.port={{ .Values.resources.worker.ports.rpc }} -Dalluxio.worker.web.port={{ .Values.resources.worker.ports.web }} -Dalluxio.job.worker.rpc.port={{ .Values.resources.jobWorker.ports.rpc }} -Dalluxio.job.worker.data.port={{ .Values.resources.jobWorker.ports.data }} -Dalluxio.job.worker.web.port={{ .Values.resources.jobWorker.ports.web }} {{- range $key, $val := .Values.properties }} -D{{ $key }}={{ $val }} {{- end}}
