Skip to content

Commit

Permalink
Merge pull request #817 from gnadaban/bugfix/gee/add-missing-resource…
Browse files Browse the repository at this point in the history
…s-for-init-containers

Specify init container resources for fluent-operator deployment
  • Loading branch information
benjaminhuo authored Jul 3, 2023
2 parents 82f995b + df4f02e commit 6ee70d3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
- '-c'
- set -ex;
echo CONTAINER_ROOT_DIR=$(docker info -f '{{`{{.DockerRootDir}}`}}' 2> /dev/null) > /fluent-operator/fluent-bit.env
resources:
{{- toYaml .Values.operator.initcontainer.resources | nindent 10 }}
volumeMounts:
- name: env
mountPath: /fluent-operator
Expand All @@ -58,6 +60,8 @@ spec:
- '-c'
- set -ex;
echo CONTAINER_ROOT_DIR={{ .Values.operator.logPath.containerd }} > /fluent-operator/fluent-bit.env
resources:
{{- toYaml .Values.operator.initcontainer.resources | nindent 10 }}
volumeMounts:
- name: env
mountPath: /fluent-operator
Expand All @@ -73,6 +77,8 @@ spec:
- '-c'
- set -ex;
echo CONTAINER_ROOT_DIR={{ .Values.operator.logPath.crio }} > /fluent-operator/fluent-bit.env
resources:
{{- toYaml .Values.operator.initcontainer.resources | nindent 10 }}
volumeMounts:
- name: env
mountPath: /fluent-operator
Expand Down
16 changes: 12 additions & 4 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ operator:
initcontainer:
repository: "docker"
tag: "20.10"

resources:
limits:
cpu: 100m
memory: 64Mi
requests:
cpu: 50m
memory: 64Mi
container:
repository: "kubesphere/fluent-operator"
tag: "latest"
Expand Down Expand Up @@ -108,8 +116,8 @@ fluentbit:
# nodeSelector configuration for Fluent Bit pods. Ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}
# Node tolerations applied to Fluent Bit pods. Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
tolerations:
- operator: Exists
tolerations:
- operator: Exists
# Priority Class applied to Fluent Bit pods. Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""
# Environment variables that can be passed to fluentbit pods
Expand Down Expand Up @@ -224,9 +232,9 @@ fluentbit:
kubeedge:
enable: false
prometheusRemoteWrite:
# Change the host to the address of a cloud-side Prometheus-compatible server that can receive Prometheus remote write data
# Change the host to the address of a cloud-side Prometheus-compatible server that can receive Prometheus remote write data
host: "<cloud-prometheus-service-host>"
# Change the port to the port of a cloud-side Prometheus-compatible server that can receive Prometheus remote write data
# Change the port to the port of a cloud-side Prometheus-compatible server that can receive Prometheus remote write data
port: "<cloud-prometheus-service-port>"

fluentd:
Expand Down

0 comments on commit 6ee70d3

Please sign in to comment.