Skip to content

Commit

Permalink
Merge pull request #590 from FleetAdmiralButter/main
Browse files Browse the repository at this point in the history
Ability to configure toleration/affinity on FluentD deployment
  • Loading branch information
tobybellwood authored Oct 17, 2023
2 parents 8166ee9 + 36147ea commit ba72e0e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/lagoon-logging/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ annotations:
description: update uselagoon/logs-dispatcher image to v3.4.0
- kind: added
description: schedule Logging Pods also on infra nodes
- kind: added
description: ability to configure toleration/affinity on FluentD deployment

Check failure on line 40 in charts/lagoon-logging/Chart.yaml

View workflow job for this annotation

GitHub Actions / lint-test

40:82 [trailing-spaces] trailing spaces

Check failure on line 40 in charts/lagoon-logging/Chart.yaml

View workflow job for this annotation

GitHub Actions / lint-test (v1.23.17@sha256:59c989ff8a517a93127d4a536e7014d28e235fb3529d9fba91b3951d461edfdb)

40:82 [trailing-spaces] trailing spaces

Check failure on line 40 in charts/lagoon-logging/Chart.yaml

View workflow job for this annotation

GitHub Actions / lint-test (v1.24.15@sha256:7db4f8bea3e14b82d12e044e25e34bd53754b7f2b0e9d56df21774e6f66a70ab)

40:82 [trailing-spaces] trailing spaces

Check failure on line 40 in charts/lagoon-logging/Chart.yaml

View workflow job for this annotation

GitHub Actions / lint-test (v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b35be0c8)

40:82 [trailing-spaces] trailing spaces

Check failure on line 40 in charts/lagoon-logging/Chart.yaml

View workflow job for this annotation

GitHub Actions / lint-test (v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e4504007adb)

40:82 [trailing-spaces] trailing spaces

Check failure on line 40 in charts/lagoon-logging/Chart.yaml

View workflow job for this annotation

GitHub Actions / lint-test (v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952d5b31)

40:82 [trailing-spaces] trailing spaces
8 changes: 8 additions & 0 deletions charts/lagoon-logging/templates/logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ spec:
fsGroup: 0
scaling:
replicas: {{ .Values.fluentdReplicaCount }}
{{- with .Values.fluentdAffinity }}
affinity:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.fluentdTolerations }}
tolerations:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.fluentdMetrics }}
metrics:
{{- toYaml . | nindent 6 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/lagoon-logging/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ enableDefaultForwarding: true
# Set how many fluentd pods should be running
fluentdReplicaCount: 3

fluentdTolerations: []

fluentdAffinity: {}

# Add tolerations to the fluentbit daemonset so that it runs on e.g.
# load-balancer nodes.
fluentbitTolerations:
Expand Down

0 comments on commit ba72e0e

Please sign in to comment.