Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fluent-operator from v2.2.0 to v2.3.0 #378

Merged
merged 2 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/fluent-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ keywords:
- fluent-bit
- fluentd
- operator
version: 2.2.0
appVersion: 2.2.0
version: 2.3.0
appVersion: 2.3.0
icon: https://raw.githubusercontent.com/fluent/fluent-operator/master/docs/images/fluent-operator-icon.svg
home: https://www.fluentd.org/
sources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,15 @@ spec:
type: object
type: object
type: array
logLevel:
enum:
- "off"
- error
- warning
- info
- debug
- trace
type: string
match:
description: A pattern to match against the tags of incoming records.
It's case-sensitive and support the star (*) character as a wildcard.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ spec:
logLevel:
description: Diagnostic level (error/warning/info/debug/trace)
enum:
- "off"
- error
- warning
- info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ spec:
tag:
type: string
type: object
logLevel:
enum:
- "off"
- error
- warning
- info
- debug
- trace
type: string
nodeExporterMetrics:
description: NodeExporterMetrics defines Node Exporter Metrics Input
configuration.
Expand Down
301 changes: 299 additions & 2 deletions charts/fluent-operator/crds/fluentbit.fluent.io_clusteroutputs.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,15 @@ spec:
type: object
type: object
type: array
logLevel:
enum:
- "off"
- error
- warning
- info
- debug
- trace
type: string
match:
description: A pattern to match against the tags of incoming records.
It's case-sensitive and support the star (*) character as a wildcard.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4302,6 +4302,10 @@ spec:
runtimeClassName:
description: RuntimeClassName represents the container runtime configuration.
type: string
schedulerName:
description: SchedulerName represents the desired scheduler for fluent-bit
pods.
type: string
secrets:
description: The Secrets are mounted into /fluent-bit/secrets/<secret-name>.
items:
Expand Down
301 changes: 299 additions & 2 deletions charts/fluent-operator/crds/fluentbit.fluent.io_outputs.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ spec:
type: string
type: object
type: object
tag:
description: Which tag to be matched.
type: string
type: object
type: array
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,9 @@ spec:
stdout:
description: out_stdout plugin
type: object
tag:
description: Which tag to be matched.
type: string
type: object
type: array
type: object
Expand Down
3 changes: 3 additions & 0 deletions charts/fluent-operator/crds/fluentd.fluent.io_filters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ spec:
type: string
type: object
type: object
tag:
description: Which tag to be matched.
type: string
type: object
type: array
type: object
Expand Down
559 changes: 559 additions & 0 deletions charts/fluent-operator/crds/fluentd.fluent.io_fluentds.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions charts/fluent-operator/crds/fluentd.fluent.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,9 @@ spec:
stdout:
description: out_stdout plugin
type: object
tag:
description: Which tag to be matched.
type: string
type: object
type: array
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,22 @@ spec:
- name: env
mountPath: /fluent-operator
serviceAccountName: fluent-operator
{{- if .Values.operator.priorityClassName }}
priorityClassName: {{ .Values.operator.priorityClassName | quote }}
{{- end }}
{{- if .Values.operator.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.operator.imagePullSecrets | nindent 8 }}
{{ toYaml .Values.operator.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.operator.tolerations }}
tolerations:
{{ toYaml .Values.operator.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.operator.nodeSelector }}
nodeSelector:
{{ toYaml .Values.operator.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.operator.podSecurityContext }}
podSecurityContext:
{{ toYaml .Values.operator.podSecurityContext | nindent 8 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
tail:
tag: kube.*
path: {{ .Values.fluentbit.input.tail.path }}
readFromHead: {{ .Values.fluentbit.input.tail.readFromHead }}
{{- if eq .Values.containerRuntime "docker" }}
parser: docker
{{- else if eq .Values.containerRuntime "containerd" }}
Expand Down
33 changes: 25 additions & 8 deletions charts/fluent-operator/templates/fluentbit-fluentBit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,32 @@ spec:
resources:
{{- toYaml .Values.fluentbit.resources | nindent 4 }}
fluentBitConfigName: fluent-bit-config
{{- if .Values.fluentbit.namespaceFluentBitCfgSelector }}
namespaceFluentBitCfgSelector:
{{ toYaml .Values.fluentbit.namespaceFluentBitCfgSelector | indent 4 }}
{{- end }}
{{- if .Values.fluentbit.envVars }}
envVars:
{{ toYaml .Values.fluentbit.envVars | indent 4 }}
{{- end }}
{{- with .Values.fluentbit.tolerations }}
tolerations:
- operator: Exists
{{ toYaml . | indent 4 }}
{{- end }}
{{- with .Values.fluentbit.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 4 }}
{{- end }}
{{- if .Values.fluentbit.priorityClassName }}
priorityClassName: {{ .Values.fluentbit.priorityClassName | quote }}
{{- end }}
{{- with .Values.fluentbit.affinity }}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/edge
operator: DoesNotExist
{{ toYaml . | indent 4 }}
{{- end }}
{{- if .Values.fluentbit.schedulerName }}
schedulerName: {{ .Values.fluentbit.schedulerName }}
{{- end }}
{{- if .Values.fluentbit.secrets }}
secrets:
{{ toYaml .Values.fluentbit.secrets | indent 4 }}
Expand All @@ -53,4 +70,4 @@ spec:
{{ toYaml .Values.fluentbit.labels | indent 4 }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ metadata:
node-role.kubernetes.io/edge: "true"
spec:
nodeExporterMetrics:
tag: kubeedge.*
scrapeInterval: 30s
tag: kubeedge.metrics.*
scrapeInterval: 1m
path :
procfs: /host/proc
sysfs : /host/sys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ metadata:
node-role.kubernetes.io/edge: "true"
spec:
prometheusScrapeMetrics:
tag: kubeedge.*
tag: kubeedge.metrics.*
host: 127.0.0.1
port: 10350
scrapeInterval: 30s
scrapeInterval: 1m
metricsPath : /metrics/cadvisor
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
fluentbit.fluent.io/enabled: "true"
node-role.kubernetes.io/edge: "true"
spec:
matchRegex: (?:kubeedge|service)\.(.*)
match: kubeedge.metrics.*
prometheusRemoteWrite:
host: {{ .Values.fluentbit.edge.prometheusRemoteWrite.host }}
port: {{ .Values.fluentbit.edge.prometheusRemoteWrite.port }}
Expand Down
6 changes: 6 additions & 0 deletions charts/fluent-operator/templates/fluentd-fluentd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ spec:
fluentdCfgSelector:
matchLabels:
config.fluentd.fluent.io/enabled: "true"
{{- if .Values.fluentd.schedulerName }}
schedulerName: {{ .Values.fluentd.schedulerName }}
{{- end }}
{{- if .Values.fluentd.logLevel }}
logLevel: {{ .Values.fluentd.logLevel }}
{{- end }}
{{- end }}
{{- end }}
41 changes: 37 additions & 4 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ operator:
tag: "20.10"
container:
repository: "kubesphere/fluent-operator"
tag: "v2.2.0"
# FluentBit operator resources. Usually user needn't to adjust these.
tag: "v2.3.0"
# nodeSelector configuration for Fluent Operator. Ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}
# Node tolerations applied to Fluent Operator. Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
tolerations: []
# Priority class applied to Fluent Operator. Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""
# Pod security context for Fluent Operator. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
podSecurityContext: {}
# Fluent Operator resources. Usually user needn't to adjust these.
resources:
limits:
cpu: 100m
Expand Down Expand Up @@ -53,7 +61,7 @@ fluentbit:
enable: true
image:
repository: "kubesphere/fluent-bit"
tag: "v2.0.11"
tag: "v2.1.4"
# fluentbit resources. If you do want to specify resources, adjust them as necessary
# You can adjust it based on the log volume.
resources:
Expand Down Expand Up @@ -83,6 +91,26 @@ fluentbit:
additionalVolumes: []
# Pod volumes to mount into the container's filesystem.
additionalVolumesMounts: []
# affinity configuration for Fluent Bit pods. Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/edge
operator: DoesNotExist
# 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
# 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
envVars: []
# - name: FOO
# value: "bar"
schedulerName: ""

# Remove the above empty volumes and volumesMounts, and then set additionalVolumes and additionalVolumesMounts as below if you want to collect node exporter metrics
# additionalVolumes:
Expand All @@ -102,6 +130,8 @@ fluentbit:
# name: hostProc
# readOnly: true

namespaceFluentBitCfgSelector: {}

# Set a limit of memory that Tail plugin can use when appending data to the Engine.
# You can find more details here: https://docs.fluentbit.io/manual/pipeline/inputs/tail#config
# If the limit is reach, it will be paused; when the data is flushed it resumes.
Expand All @@ -115,6 +145,7 @@ fluentbit:
memBufLimit: 5MB
path: "/var/log/containers/*.log"
skipLongLines: true
readFromHead: false
systemd:
enable: true
path: "/var/log/journal"
Expand All @@ -131,7 +162,7 @@ fluentbit:
# Configure the output plugin parameter in FluentBit.
# You can set enable to true to output logs to the specified location.
output:
# You can find more supported output plugins here: https://github.com/fluent/fluent-operator/tree/master/docs/plugins/fluentbit/clusteroutput
# You can find more supported output plugins here: https://github.com/fluent/fluent-operator/tree/master/docs/plugins/fluentbit/output
es:
enable: false
host: "<Elasticsearch url like elasticsearch-logging-data.kubesphere-logging-system.svc>"
Expand Down Expand Up @@ -210,6 +241,8 @@ fluentd:
requests:
cpu: 100m
memory: 128Mi
schedulerName: ""
logLevel: ""
# Configure the output plugin parameter in Fluentd.
# Fluentd is disabled by default, if you enable it make sure to also set up an output to use.
output:
Expand Down