Skip to content

Commit

Permalink
[BugFix] In Helm Chart, capabilities field needs to be supported for FE
Browse files Browse the repository at this point in the history
Signed-off-by: yandongxiao <yandongxiao@starrocks.com>
  • Loading branch information
yandongxiao committed Nov 25, 2024
1 parent 416d5cd commit 3d1157c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ spec:
{{- if .Values.starrocksFESpec.readOnlyRootFilesystem }}
readOnlyRootFilesystem: {{ .Values.starrocksFESpec.readOnlyRootFilesystem }}
{{- end }}
{{- if .Values.starrocksFESpec.capabilities }}
capabilities:
{{- toYaml .Values.starrocksFESpec.capabilities | nindent 6 }}
{{- end }}
{{- if or .Values.starrocksFESpec.nodeSelector .Values.starrocksCluster.componentValues.nodeSelector }}
nodeSelector:
{{- include "starrockscluster.fe.nodeSelector" . | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@ starrocksFESpec:
# Whether this container has a read-only root filesystem.
# Note: The FE/BE/CN container should support read-only root filesystem. The newest version of FE/BE/CN is 3.3.6, and does not support read-only root filesystem.
readOnlyRootFilesystem: false
# add/drop capabilities for FE container.
capabilities: {}
# add:
# - PERFMON
# - SYS_PTRACE
# drop:
# - SYS_ADMIN
# specify the service name and port config and serviceType
# the service type refer https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
service:
Expand Down
7 changes: 7 additions & 0 deletions helm-charts/charts/kube-starrocks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,13 @@ starrocks:
# Whether this container has a read-only root filesystem.
# Note: The FE/BE/CN container should support read-only root filesystem. The newest version of FE/BE/CN is 3.3.6, and does not support read-only root filesystem.
readOnlyRootFilesystem: false
# add/drop capabilities for FE container.
capabilities: {}
# add:
# - PERFMON
# - SYS_PTRACE
# drop:
# - SYS_ADMIN
# specify the service name and port config and serviceType
# the service type refer https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
service:
Expand Down

0 comments on commit 3d1157c

Please sign in to comment.