This is an automated email from the ASF dual-hosted git repository.
rexxiong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/celeborn.git
The following commit(s) were added to refs/heads/main by this push:
new 2e41877cd [CELEBORN-2017][HELM] Add namespace to the metadata
2e41877cd is described below
commit 2e41877cda73fd44bad363a2c38252edd6daac78
Author: Yi Chen <[email protected]>
AuthorDate: Thu Jun 5 22:10:03 2025 +0800
[CELEBORN-2017][HELM] Add namespace to the metadata
### What changes were proposed in this pull request?
- Add `namespace` to the object metadata for all namespace-scoped resources.
- Update related Helm unit tests.
- Bump chart `appVersion` to `0.5.4` since the Docker image with this tag
has already been released.
### Why are the changes needed?
- Improve the Helm charts.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Run Helm unit tests by `helm unittest charts/celeborn --file
"tests/**/*_test.yaml" --strict --debug`.
Closes #3295 from ChenYi015/helm/namespace.
Authored-by: Yi Chen <[email protected]>
Signed-off-by: Shuang <[email protected]>
---
charts/celeborn/Chart.yaml | 2 +-
charts/celeborn/templates/_helpers.tpl | 32 ++++------
charts/celeborn/templates/configmap.yaml | 3 +-
charts/celeborn/templates/master/podmonitor.yaml | 1 +
.../celeborn/templates/master/priorityclass.yaml | 1 +
charts/celeborn/templates/master/service.yaml | 2 +
charts/celeborn/templates/master/statefulset.yaml | 5 +-
charts/celeborn/templates/role.yaml | 8 ++-
charts/celeborn/templates/rolebinding.yaml | 9 +--
charts/celeborn/templates/serviceaccount.yaml | 3 +-
charts/celeborn/templates/worker/podmonitor.yaml | 1 +
.../celeborn/templates/worker/priorityclass.yaml | 1 +
charts/celeborn/templates/worker/service.yaml | 1 +
charts/celeborn/templates/worker/statefulset.yaml | 5 +-
charts/celeborn/tests/configmap_test.yaml | 1 +
charts/celeborn/tests/master/podmonitor_test.yaml | 2 +
.../celeborn/tests/master/priorityclass_test.yaml | 2 +
charts/celeborn/tests/master/service_test.yaml | 2 +
charts/celeborn/tests/master/statefulset_test.yaml | 9 +++
charts/celeborn/tests/role_test.yaml | 21 ++----
charts/celeborn/tests/rolebinding_test.yaml | 16 ++---
charts/celeborn/tests/serviceaccount_test.yaml | 16 ++++-
charts/celeborn/tests/worker/podmonitor_test.yaml | 1 +
.../celeborn/tests/worker/priorityclass_test.yaml | 2 +
charts/celeborn/tests/worker/service_test.yaml | 2 +
charts/celeborn/tests/worker/statefulset_test.yaml | 9 +++
charts/celeborn/values.yaml | 74 +++++++++++-----------
27 files changed, 135 insertions(+), 96 deletions(-)
diff --git a/charts/celeborn/Chart.yaml b/charts/celeborn/Chart.yaml
index 16db9d67f..d547ad3b4 100644
--- a/charts/celeborn/Chart.yaml
+++ b/charts/celeborn/Chart.yaml
@@ -22,7 +22,7 @@ description: >
Intermediate data typically include shuffle and spilled data.
type: application
version: 0.1.0
-appVersion: 0.4.0
+appVersion: 0.5.4
keywords:
- Apache Celeborn
- Big Data
diff --git a/charts/celeborn/templates/_helpers.tpl
b/charts/celeborn/templates/_helpers.tpl
index c24491c6d..a14b49f4f 100644
--- a/charts/celeborn/templates/_helpers.tpl
+++ b/charts/celeborn/templates/_helpers.tpl
@@ -67,43 +67,37 @@ app.kubernetes.io/name: {{ include "celeborn.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
-{{/*
-Create the name of the service account to use
-*/}}
-{{- define "celeborn.serviceAccountName" -}}
+{{/* Create the name of the service account to use. */}}
+{{- define "celeborn.serviceAccount.name" -}}
{{- if .Values.serviceAccount.create }}
-{{- default (include "celeborn.fullname" .) .Values.serviceAccount.name }}
+{{- .Values.serviceAccount.name | default (include "celeborn.fullname" .) }}
{{- else }}
-{{- default "default" .Values.serviceAccount.name }}
+{{- .Values.serviceAccount.name | default "default" }}
{{- end }}
{{- end }}
-{{/*
-Create the name of the role to use
-*/}}
-{{- define "celeborn.roleName" -}}
+{{/* Create the name of the role to use. */}}
+{{- define "celeborn.role.name" -}}
{{- if .Values.rbac.create }}
-{{- default (include "celeborn.fullname" .) .Values.rbac.roleName }}
+{{- .Values.rbac.roleName | default (include "celeborn.fullname" .) }}
{{- else }}
-{{- default "default" .Values.rbac.roleName }}
+{{- .Values.rbac.roleName | default "default" }}
{{- end }}
{{- end }}
{{/*
Create the name of the roleBinding to use
*/}}
-{{- define "celeborn.roleBindingName" -}}
+{{- define "celeborn.roleBinding.name" -}}
{{- if .Values.rbac.create }}
-{{- default (include "celeborn.fullname" .) .Values.rbac.roleBindingName }}
+{{- .Values.rbac.roleBindingName | default (include "celeborn.fullname" .) }}
{{- else }}
-{{- default "default" .Values.rbac.roleBindingName }}
+{{- .Values.rbac.roleBindingName | default "default" }}
{{- end }}
{{- end }}
-{{/*
-Create the name of configmap to use
-*/}}
-{{- define "celeborn.configMapName" -}}
+{{/* Create the name of configmap to use. */}}
+{{- define "celeborn.configMap.name" -}}
{{ include "celeborn.fullname" . }}-conf
{{- end -}}
diff --git a/charts/celeborn/templates/configmap.yaml
b/charts/celeborn/templates/configmap.yaml
index 00b680aa7..c838294f6 100644
--- a/charts/celeborn/templates/configmap.yaml
+++ b/charts/celeborn/templates/configmap.yaml
@@ -18,7 +18,8 @@ limitations under the License.
apiVersion: v1
kind: ConfigMap
metadata:
- name: {{ include "celeborn.configMapName" . }}
+ name: {{ include "celeborn.configMap.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.labels" . | nindent 4 }}
data:
diff --git a/charts/celeborn/templates/master/podmonitor.yaml
b/charts/celeborn/templates/master/podmonitor.yaml
index 025708411..a6e6f60c9 100644
--- a/charts/celeborn/templates/master/podmonitor.yaml
+++ b/charts/celeborn/templates/master/podmonitor.yaml
@@ -21,6 +21,7 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ include "celeborn.master.podMonitor.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.master.labels" . | nindent 4 }}
spec:
diff --git a/charts/celeborn/templates/master/priorityclass.yaml
b/charts/celeborn/templates/master/priorityclass.yaml
index f8cc847ce..f0335cd4b 100644
--- a/charts/celeborn/templates/master/priorityclass.yaml
+++ b/charts/celeborn/templates/master/priorityclass.yaml
@@ -20,6 +20,7 @@ apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ include "celeborn.master.priorityClass.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.master.labels" . | nindent 4 }}
value: {{ .Values.master.priorityClass.value }}
diff --git a/charts/celeborn/templates/master/service.yaml
b/charts/celeborn/templates/master/service.yaml
index b3a0069c8..5c43af9cf 100644
--- a/charts/celeborn/templates/master/service.yaml
+++ b/charts/celeborn/templates/master/service.yaml
@@ -22,6 +22,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "celeborn.master.service.name" $ }}-{{ $i }}
+ namespace: {{ $.Release.Namespace }}
labels:
{{- include "celeborn.labels" $ | nindent 4 }}
annotations:
@@ -50,6 +51,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "celeborn.master.service.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.master.labels" . | nindent 4 }}
annotations:
diff --git a/charts/celeborn/templates/master/statefulset.yaml
b/charts/celeborn/templates/master/statefulset.yaml
index 2ccf49e72..5b9e876fd 100644
--- a/charts/celeborn/templates/master/statefulset.yaml
+++ b/charts/celeborn/templates/master/statefulset.yaml
@@ -19,6 +19,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ include "celeborn.master.statefulSet.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.master.labels" . | nindent 4 }}
spec:
@@ -138,7 +139,7 @@ spec:
volumes:
- name: celeborn-conf
configMap:
- name: {{ include "celeborn.configMapName" . }}
+ name: {{ include "celeborn.configMap.name" . }}
defaultMode: 0444
items:
- key: celeborn-defaults.conf
@@ -171,7 +172,7 @@ spec:
{{- with .Values.master.hostNetwork }}
hostNetwork: {{ . }}
{{- end }}
- serviceAccountName: {{ include "celeborn.serviceAccountName" . }}
+ serviceAccountName: {{ include "celeborn.serviceAccount.name" . }}
{{- with .Values.master.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
diff --git a/charts/celeborn/templates/role.yaml
b/charts/celeborn/templates/role.yaml
index 0580b8dc9..dd48c1f3d 100644
--- a/charts/celeborn/templates/role.yaml
+++ b/charts/celeborn/templates/role.yaml
@@ -19,9 +19,13 @@ limitations under the License.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
- name: {{ include "celeborn.roleName" . }}
+ name: {{ include "celeborn.role.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.labels" . | nindent 4 }}
-rules: {{- toYaml .Values.rbac.rules | nindent 2 }}
+rules:
+- apiGroups: [""]
+ resources: ["pods"]
+ verbs: ["create", "list", "delete"]
{{- end }}
diff --git a/charts/celeborn/templates/rolebinding.yaml
b/charts/celeborn/templates/rolebinding.yaml
index ebe344978..038f0bb42 100644
--- a/charts/celeborn/templates/rolebinding.yaml
+++ b/charts/celeborn/templates/rolebinding.yaml
@@ -19,15 +19,16 @@ limitations under the License.
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
- name: {{ include "celeborn.roleBindingName" . }}
+ name: {{ include "celeborn.roleBinding.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.labels" . | nindent 4 }}
subjects:
- - kind: ServiceAccount
- name: {{ include "celeborn.serviceAccountName" . }}
+- kind: ServiceAccount
+ name: {{ include "celeborn.serviceAccount.name" . }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
- name: {{ include "celeborn.roleName" . }}
+ name: {{ include "celeborn.role.name" . }}
{{- end }}
diff --git a/charts/celeborn/templates/serviceaccount.yaml
b/charts/celeborn/templates/serviceaccount.yaml
index 7deb9eae4..482ef0c18 100644
--- a/charts/celeborn/templates/serviceaccount.yaml
+++ b/charts/celeborn/templates/serviceaccount.yaml
@@ -19,7 +19,8 @@ limitations under the License.
apiVersion: v1
kind: ServiceAccount
metadata:
- name: {{ include "celeborn.serviceAccountName" . }}
+ name: {{ include "celeborn.serviceAccount.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.labels" . | nindent 4 }}
{{- end }}
diff --git a/charts/celeborn/templates/worker/podmonitor.yaml
b/charts/celeborn/templates/worker/podmonitor.yaml
index 494dac946..38ab5d1ea 100644
--- a/charts/celeborn/templates/worker/podmonitor.yaml
+++ b/charts/celeborn/templates/worker/podmonitor.yaml
@@ -21,6 +21,7 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ include "celeborn.worker.podMonitor.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.worker.labels" . | nindent 4 }}
spec:
diff --git a/charts/celeborn/templates/worker/priorityclass.yaml
b/charts/celeborn/templates/worker/priorityclass.yaml
index 95a55b653..22803f810 100644
--- a/charts/celeborn/templates/worker/priorityclass.yaml
+++ b/charts/celeborn/templates/worker/priorityclass.yaml
@@ -20,6 +20,7 @@ apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ include "celeborn.worker.priorityClass.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.worker.labels" . | nindent 4 }}
value: {{ .Values.worker.priorityClass.value }}
diff --git a/charts/celeborn/templates/worker/service.yaml
b/charts/celeborn/templates/worker/service.yaml
index cd959b68e..90b594027 100644
--- a/charts/celeborn/templates/worker/service.yaml
+++ b/charts/celeborn/templates/worker/service.yaml
@@ -19,6 +19,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "celeborn.worker.service.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.worker.labels" . | nindent 4 }}
annotations:
diff --git a/charts/celeborn/templates/worker/statefulset.yaml
b/charts/celeborn/templates/worker/statefulset.yaml
index b8441a3bd..07d1d4096 100644
--- a/charts/celeborn/templates/worker/statefulset.yaml
+++ b/charts/celeborn/templates/worker/statefulset.yaml
@@ -19,6 +19,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ include "celeborn.worker.statefulSet.name" . }}
+ namespace: {{ .Release.Namespace }}
labels:
{{- include "celeborn.worker.labels" . | nindent 4 }}
spec:
@@ -137,7 +138,7 @@ spec:
volumes:
- name: celeborn-conf
configMap:
- name: {{ include "celeborn.configMapName" . }}
+ name: {{ include "celeborn.configMap.name" . }}
defaultMode: 0444
items:
- key: celeborn-defaults.conf
@@ -170,7 +171,7 @@ spec:
{{- with .Values.worker.hostNetwork }}
hostNetwork: {{ . }}
{{- end }}
- serviceAccountName: {{ include "celeborn.serviceAccountName" . }}
+ serviceAccountName: {{ include "celeborn.serviceAccount.name" . }}
{{- with .Values.worker.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
diff --git a/charts/celeborn/tests/configmap_test.yaml
b/charts/celeborn/tests/configmap_test.yaml
index 25ed0f48f..0d8128665 100644
--- a/charts/celeborn/tests/configmap_test.yaml
+++ b/charts/celeborn/tests/configmap_test.yaml
@@ -22,6 +22,7 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
- it: Should create configmap
diff --git a/charts/celeborn/tests/master/podmonitor_test.yaml
b/charts/celeborn/tests/master/podmonitor_test.yaml
index c13930e02..89b9792e0 100644
--- a/charts/celeborn/tests/master/podmonitor_test.yaml
+++ b/charts/celeborn/tests/master/podmonitor_test.yaml
@@ -22,6 +22,7 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
- it: Should not create master pod monitor without api version
`monitoring.coreos.com/v1/PodMonitor` even if `podMonitor.enable` is true
@@ -44,6 +45,7 @@ tests:
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
name: celeborn-master-podmonitor
+ namespace: celeborn
- it: Should use the specified pod metrics endpoints
capabilities:
diff --git a/charts/celeborn/tests/master/priorityclass_test.yaml
b/charts/celeborn/tests/master/priorityclass_test.yaml
index 5ca7d1314..6ad185eaa 100644
--- a/charts/celeborn/tests/master/priorityclass_test.yaml
+++ b/charts/celeborn/tests/master/priorityclass_test.yaml
@@ -22,6 +22,7 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
- it: Should not create master priority as default
@@ -39,6 +40,7 @@ tests:
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
name: celeborn-master-priority-class
+ namespace: celeborn
- it: Should use the specified priority class value
set:
diff --git a/charts/celeborn/tests/master/service_test.yaml
b/charts/celeborn/tests/master/service_test.yaml
index a3f660b63..7e792963f 100644
--- a/charts/celeborn/tests/master/service_test.yaml
+++ b/charts/celeborn/tests/master/service_test.yaml
@@ -22,6 +22,7 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
- it: Should create master service
@@ -30,6 +31,7 @@ tests:
apiVersion: v1
kind: Service
name: celeborn-master-svc
+ namespace: celeborn
- it: Should have label selectors for master
asserts:
diff --git a/charts/celeborn/tests/master/statefulset_test.yaml
b/charts/celeborn/tests/master/statefulset_test.yaml
index 981a80d6c..8117698c4 100644
--- a/charts/celeborn/tests/master/statefulset_test.yaml
+++ b/charts/celeborn/tests/master/statefulset_test.yaml
@@ -22,8 +22,17 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
+ - it: Should create master statefulset
+ asserts:
+ - containsDocument:
+ apiVersion: apps/v1
+ kind: StatefulSet
+ name: celeborn-master
+ namespace: celeborn
+
- it: Should add extra pod annotations if `master.annotations` is specified
set:
master:
diff --git a/charts/celeborn/tests/role_test.yaml
b/charts/celeborn/tests/role_test.yaml
index 7f3651fd4..8165f6c53 100644
--- a/charts/celeborn/tests/role_test.yaml
+++ b/charts/celeborn/tests/role_test.yaml
@@ -22,6 +22,7 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
- it: Should not create role if `rbac.create` is false
@@ -32,28 +33,18 @@ tests:
- hasDocuments:
count: 0
-
- it: Should create a Role resource with specific rules when rbac.create is
true
set:
rbac:
create: true
rbac:
rules:
- - apiGroups: [ "" ]
- resources: [ "pods" ]
- verbs: [ "get", "watch", "list" ]
+ - apiGroups: [""]
+ resources: ["pods"]
+ verbs: ["get", "watch", "list"]
asserts:
- containsDocument:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
- metadata:
- name: celeborn-role
- rules:
- - apiGroups:
- - ""
- resources:
- - pods
- verbs:
- - get
- - watch
- - list
+ name: default
+ namespace: celeborn
diff --git a/charts/celeborn/tests/rolebinding_test.yaml
b/charts/celeborn/tests/rolebinding_test.yaml
index 42003a8da..df6605f95 100644
--- a/charts/celeborn/tests/rolebinding_test.yaml
+++ b/charts/celeborn/tests/rolebinding_test.yaml
@@ -22,9 +22,10 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
- - it: Should not create a RoleBinding resource when rbac.create is false
+ - it: Should not create a RoleBinding resource when `rbac.create` is false
set:
rbac:
create: false
@@ -32,7 +33,7 @@ tests:
- hasDocuments:
count: 0
- - it: Should create a RoleBinding resource when rbac.create is true
+ - it: Should create a RoleBinding resource when `rbac.create` is true
set:
rbac:
create: true
@@ -40,12 +41,5 @@ tests:
- containsDocument:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
- metadata:
- name: celeborn-rolebinding
- subjects:
- - kind: ServiceAccount
- name: default
- roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: celeborn-role
+ name: default
+ namespace: celeborn
diff --git a/charts/celeborn/tests/serviceaccount_test.yaml
b/charts/celeborn/tests/serviceaccount_test.yaml
index 17d001aa0..1f92f48c4 100644
--- a/charts/celeborn/tests/serviceaccount_test.yaml
+++ b/charts/celeborn/tests/serviceaccount_test.yaml
@@ -22,6 +22,7 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
- it: Should not create service account if `serviceAccount.create` is false
@@ -40,4 +41,17 @@ tests:
- containsDocument:
apiVersion: v1
kind: ServiceAccount
- name: default
+ name: celeborn
+ namespace: celeborn
+
+ - it: Should create service account with the specified name if
`serviceAccount.name` is specified
+ set:
+ serviceAccount:
+ create: true
+ name: test-service-account
+ asserts:
+ - containsDocument:
+ apiVersion: v1
+ kind: ServiceAccount
+ name: test-service-account
+ namespace: celeborn
diff --git a/charts/celeborn/tests/worker/podmonitor_test.yaml
b/charts/celeborn/tests/worker/podmonitor_test.yaml
index 9343072f2..ef5efc793 100644
--- a/charts/celeborn/tests/worker/podmonitor_test.yaml
+++ b/charts/celeborn/tests/worker/podmonitor_test.yaml
@@ -22,6 +22,7 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
- it: Should not create worker pod monitor without api version
`monitoring.coreos.com/v1/PodMonitor` even if `podMonitor.enable` is true
diff --git a/charts/celeborn/tests/worker/priorityclass_test.yaml
b/charts/celeborn/tests/worker/priorityclass_test.yaml
index 55389c4e3..8c8186e72 100644
--- a/charts/celeborn/tests/worker/priorityclass_test.yaml
+++ b/charts/celeborn/tests/worker/priorityclass_test.yaml
@@ -22,6 +22,7 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
- it: Should not create worker priority as default
@@ -39,6 +40,7 @@ tests:
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
name: celeborn-worker-priority-class
+ namespace: celeborn
- it: Should use the specified priority class value
set:
diff --git a/charts/celeborn/tests/worker/service_test.yaml
b/charts/celeborn/tests/worker/service_test.yaml
index d85d8da29..27a50e994 100644
--- a/charts/celeborn/tests/worker/service_test.yaml
+++ b/charts/celeborn/tests/worker/service_test.yaml
@@ -22,6 +22,7 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
- it: Should create worker service
@@ -30,6 +31,7 @@ tests:
apiVersion: v1
kind: Service
name: celeborn-worker-svc
+ namespace: celeborn
- it: Should have label selectors for worker
asserts:
diff --git a/charts/celeborn/tests/worker/statefulset_test.yaml
b/charts/celeborn/tests/worker/statefulset_test.yaml
index 6ec98a091..37b7e8b0b 100644
--- a/charts/celeborn/tests/worker/statefulset_test.yaml
+++ b/charts/celeborn/tests/worker/statefulset_test.yaml
@@ -22,8 +22,17 @@ templates:
release:
name: celeborn
+ namespace: celeborn
tests:
+ - it: Should create worker statefulset
+ asserts:
+ - containsDocument:
+ apiVersion: apps/v1
+ kind: StatefulSet
+ name: celeborn-worker
+ namespace: celeborn
+
- it: Should add extra pod annotations if `worker.annotations` is specified
set:
worker:
diff --git a/charts/celeborn/values.yaml b/charts/celeborn/values.yaml
index 81c264479..5bf607a88 100644
--- a/charts/celeborn/values.yaml
+++ b/charts/celeborn/values.yaml
@@ -41,28 +41,6 @@ image:
# -- Image pull secrets for private image registry
imagePullSecrets: []
-service:
- # -- Specifies service type
- type: ClusterIP
- # -- Specifies service port
- port: 9097
- # -- Specifies service annotations
- annotations: {}
-
-# -- Specifies whether to create additional NodePort service for each master
replica
-additionalNodePortServicePerReplica:
- enabled: false
- # -- Specifies service port
- port: 9097
- # -- Specifies nodeport start range
- nodePortStartRange: 30000
- # -- when using NodePort service type, you can specify map of annotations
for each master replica
- annotations: {}
-
-cluster:
- # -- Specifies Kubernetes cluster name
- name: cluster
-
# -- Celeborn configurations.
# Ref: [Configuration - Apache
Celeborn](https://celeborn.apache.org/docs/latest/configuration).
celeborn:
@@ -416,23 +394,11 @@ worker:
# limits:
# storage: 100Gi
-podMonitor:
- # -- Specifies whether to enable creating pod monitors for Celeborn pods
- enable: true
- # -- Specifies pod metrics endpoint
- podMetricsEndpoint:
- # Specifies scheme
- scheme: http
- # Specifies scrape interval
- interval: 5s
- # Specifies port name
- portName: metrics
-
serviceAccount:
- # -- Specifies whether to create a service account for Celeborn
+ # -- Whether to create a service account for Celeborn.
create: false
- # -- Specifies the name of the service account
- name: default
+ # -- (Optional) Name of the Celeborn service account.
+ name: ""
rbac:
create: true
@@ -442,3 +408,37 @@ rbac:
- apiGroups: [""]
resources: ["pods"]
verbs: ["create", "list", "delete"]
+
+service:
+ # -- Specifies service type
+ type: ClusterIP
+ # -- Specifies service port
+ port: 9097
+ # -- Specifies service annotations
+ annotations: {}
+
+# -- Specifies whether to create additional NodePort service for each master
replica
+additionalNodePortServicePerReplica:
+ enabled: false
+ # -- Specifies service port
+ port: 9097
+ # -- Specifies nodeport start range
+ nodePortStartRange: 30000
+ # -- when using NodePort service type, you can specify map of annotations
for each master replica
+ annotations: {}
+
+cluster:
+ # -- Specifies Kubernetes cluster name
+ name: cluster
+
+podMonitor:
+ # -- Specifies whether to enable creating pod monitors for Celeborn pods
+ enable: true
+ # -- Specifies pod metrics endpoint
+ podMetricsEndpoint:
+ # Specifies scheme
+ scheme: http
+ # Specifies scrape interval
+ interval: 5s
+ # Specifies port name
+ portName: metrics