SteNicholas commented on code in PR #2499:
URL: https://github.com/apache/celeborn/pull/2499#discussion_r1597553868


##########
charts/celeborn/README.md:
##########
@@ -17,19 +17,22 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-# Helm Chart for Apache Celeborn
+# celeborn

Review Comment:
   Revert to `Helm Chart for Apache Celeborn`.



##########
charts/celeborn/README.md:
##########
@@ -17,19 +17,22 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-# Helm Chart for Apache Celeborn
+# celeborn
 
-[Apache Celeborn](https://celeborn.apache.org) is an intermediate data service 
for Big Data compute engines (i.e. ETL, OLAP and Streaming engines) to boost 
performance, stability, and flexibility. Intermediate data typically include 
shuffle and spilled data.
+![Version: 
0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square)
 ![Type: 
application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
 ![AppVersion: 
0.4.0](https://img.shields.io/badge/AppVersion-0.4.0-informational?style=flat-square)
 
+Celeborn is an intermediate data service for Big Data compute engines (i.e. 
ETL, OLAP and Streaming engines) to boost performance, stability, and 
flexibility. Intermediate data typically include shuffle and spilled data.

Review Comment:
   Line 24-26 revert to `[Apache Celeborn](https://celeborn.apache.org) is an 
intermediate data service for Big Data compute engines (i.e. ETL, OLAP and 
Streaming engines) to boost performance, stability, and flexibility. 
Intermediate data typically include shuffle and spilled data.`.



##########
charts/celeborn/templates/master/podmonitor.yaml:
##########
@@ -0,0 +1,41 @@
+{{- /*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/ -}}
+
+{{- if .Values.podMonitor.enable }}
+{{- if .Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PodMonitor" -}}
+apiVersion: monitoring.coreos.com/v1
+kind: PodMonitor
+metadata:
+  name: {{ include "celeborn.masterPodMonitorName" . }}
+  labels:
+    {{- include "celeborn.labels" . | nindent 4 }}
+spec:
+  podMetricsEndpoints:
+  - interval: {{ .Values.podMonitor.podMetricsEndpoint.interval }}
+    port: {{ .Values.podMonitor.podMetricsEndpoint.portName | quote }}
+    scheme: {{ .Values.podMonitor.podMetricsEndpoint.scheme }}
+    path: /metrics/prometheus

Review Comment:
   ```suggestion
       path: {{ get .Values.celeborn "celeborn.metrics.prometheus.path" }}
   ```



##########
charts/celeborn/README.md:
##########
@@ -40,17 +43,57 @@ When you want to test the template rendering, but not 
actually install anything.
 There are two ways to render templates. It will return the rendered template 
to you so you can see the output.
 
 - Local rendering chart templates
+ 
 ```shell
 helm template --debug ../celeborn
 ```
+
 - Server side rendering chart templates
+
 ```shell
 helm install --dry-run --debug --generate-name ../celeborn
 ```
-More details in [Helm Install](https://helm.sh/docs/helm/helm_install/)
-The chart can be customized using the following [celeborn 
configurations](https://celeborn.apache.org/docs/latest/configuration/#important-configurations)
-Specify parameters using `--set key=value[,key=value]` argument to `helm 
install`
+
+More details in [Helm Install](https://helm.sh/docs/helm/helm_install/).
+The chart can be customized using the following [celeborn 
configurations](https://celeborn.apache.org/docs/latest/configuration/#important-configurations).
+Specify parameters using `--set key=value[,key=value]` argument to `helm 
install`.
 
 ## Documentation
 
-For additional details on deploying the Celeborn Kubernetes Helm chart, please 
refer to the [Celeborn on 
Kubernetes](https://celeborn.apache.org/docs/latest/deploy_on_k8s/) 
documentation
+For additional details on deploying the Celeborn Kubernetes Helm chart, please 
refer to the [Celeborn on 
Kubernetes](https://celeborn.apache.org/docs/latest/deploy_on_k8s/) 
documentation.
+
+## Values
+
+| Key | Type | Default | Description |
+|-----|------|---------|-------------|
+| affinity | object | `{}` | Pod affinity |
+| cluster.name | string | `"cluster"` | Specifies Kubernetes cluster name |
+| dnsPolicy | string | `"ClusterFirst"` | Specifies the DNS policy for 
Celeborn pods to use |
+| fullnameOverride | string | `""` | String to override the default generated 
fullname |
+| hostNetwork | bool | `false` | Specifies whether to use the host's network 
namespace |
+| image.pullPolicy | string | `"Always"` | Image pull policy |
+| image.pullSecrets | list | `[]` | Image pull secrets for private image 
registry |
+| image.repository | string | `"aliyunemr/remote-shuffle-service"` | Image 
repository |
+| image.tag | string | `"0.1.1-6badd20"` | Image tag |
+| nameOverride | string | `""` | String to override the default generated name 
|
+| nodeSelector | object | `{}` | Pod node selector |
+| podAnnotations | object | `{}` | Pod annotations |
+| podMonitor.enable | bool | `true` | Specifies whether a PodMonitor should be 
created |
+| podMonitor.podMetricsEndpoint | object | 
`{"interval":"5s","portName":"metrics","scheme":"http"}` | Specifies PodMonitor 
endpoint |
+| priorityClass.master.create | bool | `false` | Specifies whether a new 
priority class for Celeborn master pods should be created |
+| priorityClass.master.name | string | `""` | Specifies the name of priority 
class for Celeborn master pods to be used (created if `create: true`) |
+| priorityClass.master.value | int | `1000000000` | Specifies the integer 
value of this priority class, default is half of system-cluster-critical |

Review Comment:
   Could the description mention which values the priority class has?



##########
charts/celeborn/README.md:
##########
@@ -40,17 +43,57 @@ When you want to test the template rendering, but not 
actually install anything.
 There are two ways to render templates. It will return the rendered template 
to you so you can see the output.
 
 - Local rendering chart templates
+ 
 ```shell
 helm template --debug ../celeborn
 ```
+
 - Server side rendering chart templates
+
 ```shell
 helm install --dry-run --debug --generate-name ../celeborn
 ```
-More details in [Helm Install](https://helm.sh/docs/helm/helm_install/)
-The chart can be customized using the following [celeborn 
configurations](https://celeborn.apache.org/docs/latest/configuration/#important-configurations)
-Specify parameters using `--set key=value[,key=value]` argument to `helm 
install`
+
+More details in [Helm Install](https://helm.sh/docs/helm/helm_install/).
+The chart can be customized using the following [celeborn 
configurations](https://celeborn.apache.org/docs/latest/configuration/#important-configurations).
+Specify parameters using `--set key=value[,key=value]` argument to `helm 
install`.
 
 ## Documentation
 
-For additional details on deploying the Celeborn Kubernetes Helm chart, please 
refer to the [Celeborn on 
Kubernetes](https://celeborn.apache.org/docs/latest/deploy_on_k8s/) 
documentation
+For additional details on deploying the Celeborn Kubernetes Helm chart, please 
refer to the [Celeborn on 
Kubernetes](https://celeborn.apache.org/docs/latest/deploy_on_k8s/) 
documentation.
+
+## Values
+
+| Key | Type | Default | Description |
+|-----|------|---------|-------------|
+| affinity | object | `{}` | Pod affinity |
+| cluster.name | string | `"cluster"` | Specifies Kubernetes cluster name |
+| dnsPolicy | string | `"ClusterFirst"` | Specifies the DNS policy for 
Celeborn pods to use |
+| fullnameOverride | string | `""` | String to override the default generated 
fullname |
+| hostNetwork | bool | `false` | Specifies whether to use the host's network 
namespace |
+| image.pullPolicy | string | `"Always"` | Image pull policy |
+| image.pullSecrets | list | `[]` | Image pull secrets for private image 
registry |
+| image.repository | string | `"aliyunemr/remote-shuffle-service"` | Image 
repository |
+| image.tag | string | `"0.1.1-6badd20"` | Image tag |
+| nameOverride | string | `""` | String to override the default generated name 
|
+| nodeSelector | object | `{}` | Pod node selector |
+| podAnnotations | object | `{}` | Pod annotations |
+| podMonitor.enable | bool | `true` | Specifies whether a PodMonitor should be 
created |
+| podMonitor.podMetricsEndpoint | object | 
`{"interval":"5s","portName":"metrics","scheme":"http"}` | Specifies PodMonitor 
endpoint |
+| priorityClass.master.create | bool | `false` | Specifies whether a new 
priority class for Celeborn master pods should be created |
+| priorityClass.master.name | string | `""` | Specifies the name of priority 
class for Celeborn master pods to be used (created if `create: true`) |
+| priorityClass.master.value | int | `1000000000` | Specifies the integer 
value of this priority class, default is half of system-cluster-critical |
+| priorityClass.worker.create | bool | `false` | Specifies whether a new 
priority class for Celeborn worker pods should be created |
+| priorityClass.worker.name | string | `""` | Specifies the name of priority 
class for Celeborn worker pods to be used (created if `create: true`) |
+| priorityClass.worker.value | int | `999999000` | Specifies the integer value 
of this priority class, default is Celeborn master value minus 1000 |
+| replicaCount.master | int | `3` | Specifies the number of Celeborn master 
replicas to deploy, master replicas should not less than 3 |
+| replicaCount.worker | int | `5` | Specifies the number of Celeborn worker 
replicas to deploy, should less than node number |
+| resources.master | object | `{}` | Celeborn master pod resources |
+| resources.worker | object | `{}` | Celeborn worker pod resources |
+| securityContext.fsGroup | int | `10006` | Specifies the group ID to use when 
modifying ownership and permissions of the mounted volumes |
+| securityContext.runAsGroup | int | `10006` | Specifies the group ID to run 
the entrypoint of the container process |
+| securityContext.runAsUser | int | `10006` | Specifies the user ID to run the 
entrypoint of the container process |
+| service.port | int | `9097` | Specifies service port |

Review Comment:
   Could this port distingish the port of the Master and Worker service?



##########
charts/celeborn/README.md:
##########
@@ -40,17 +43,57 @@ When you want to test the template rendering, but not 
actually install anything.
 There are two ways to render templates. It will return the rendered template 
to you so you can see the output.
 
 - Local rendering chart templates
+ 
 ```shell
 helm template --debug ../celeborn
 ```
+
 - Server side rendering chart templates
+
 ```shell
 helm install --dry-run --debug --generate-name ../celeborn
 ```
-More details in [Helm Install](https://helm.sh/docs/helm/helm_install/)
-The chart can be customized using the following [celeborn 
configurations](https://celeborn.apache.org/docs/latest/configuration/#important-configurations)
-Specify parameters using `--set key=value[,key=value]` argument to `helm 
install`
+
+More details in [Helm Install](https://helm.sh/docs/helm/helm_install/).
+The chart can be customized using the following [celeborn 
configurations](https://celeborn.apache.org/docs/latest/configuration/#important-configurations).
+Specify parameters using `--set key=value[,key=value]` argument to `helm 
install`.
 
 ## Documentation
 
-For additional details on deploying the Celeborn Kubernetes Helm chart, please 
refer to the [Celeborn on 
Kubernetes](https://celeborn.apache.org/docs/latest/deploy_on_k8s/) 
documentation
+For additional details on deploying the Celeborn Kubernetes Helm chart, please 
refer to the [Celeborn on 
Kubernetes](https://celeborn.apache.org/docs/latest/deploy_on_k8s/) 
documentation.
+
+## Values
+
+| Key | Type | Default | Description |
+|-----|------|---------|-------------|
+| affinity | object | `{}` | Pod affinity |
+| cluster.name | string | `"cluster"` | Specifies Kubernetes cluster name |
+| dnsPolicy | string | `"ClusterFirst"` | Specifies the DNS policy for 
Celeborn pods to use |
+| fullnameOverride | string | `""` | String to override the default generated 
fullname |
+| hostNetwork | bool | `false` | Specifies whether to use the host's network 
namespace |
+| image.pullPolicy | string | `"Always"` | Image pull policy |
+| image.pullSecrets | list | `[]` | Image pull secrets for private image 
registry |
+| image.repository | string | `"aliyunemr/remote-shuffle-service"` | Image 
repository |
+| image.tag | string | `"0.1.1-6badd20"` | Image tag |
+| nameOverride | string | `""` | String to override the default generated name 
|
+| nodeSelector | object | `{}` | Pod node selector |
+| podAnnotations | object | `{}` | Pod annotations |
+| podMonitor.enable | bool | `true` | Specifies whether a PodMonitor should be 
created |

Review Comment:
   ```suggestion
   | podMonitor.enable | bool | `true` | Specifies whether to enable creating a 
PodMonitor |
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to