Skip to content

Commit

Permalink
Removed fluentbit chart dependency, replaced using image
Browse files Browse the repository at this point in the history
Removed logRetention values, consolidated into fluentbit values
  • Loading branch information
mhaswell-bcgov committed Jul 11, 2024
1 parent 32c6c54 commit 945b12e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
7 changes: 2 additions & 5 deletions helm/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@ dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 16.13.2
- name: fluent-bit
repository: https://fluent.github.io/helm-charts
version: 0.47.0
digest: sha256:4fafceb9598c28538e9cc1bb41fc334999ca5bca49d08bfecb9fc6b95bcb0854
generated: "2024-07-11T14:33:24.034365-07:00"
digest: sha256:e3cb6ade019f5169d547ac65001758b57bebf2beb6d8e47c4053f4d2e5a6ba06
generated: "2024-07-11T15:27:57.374585-07:00"
4 changes: 0 additions & 4 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,3 @@ dependencies:
version: 16.13.2
repository: https://charts.bitnami.com/bitnami
condition: redis.enabled
- name: fluent-bit
version: 0.47.0
repository: https://fluent.github.io/helm-charts
condition: logRetention.enabled
Binary file removed helm/charts/fluent-bit-0.47.0.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion helm/templates/deployment-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ spec:
mountPath: {{ .mountPath }}
subPath: {{ .subPath }}
{{- end }}
{{- if .Values.logRetention.enabled }}
{{- if .Values.fluentbit.enabled }}
- name: {{ .Chart.Name }}-fluent-bit
image: {{ .Values.fluentbit.imageRegistry }}
imagePullPolicy: {{ .Values.fluentbit.imagePullPolicy }}
Expand Down
6 changes: 3 additions & 3 deletions helm/templates/log-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.logRetention.enabled -}}
{{- if .Values.fluentbit.enabled -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
Expand All @@ -11,6 +11,6 @@ spec:
- ReadWriteMany
resources:
requests:
storage: {{ .Values.logRetention.persistence.size }}
storageClassName: {{ .Values.logRetention.persistence.storageClassName }}
storage: {{ .Values.fluentbit.persistence.size }}
storageClassName: {{ .Values.fluentbit.persistence.storageClassName }}
{{ end }}
14 changes: 13 additions & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,20 @@ redis:
containerSecurityContext:
enabled: false

logRetention:
fluentbit:
enabled: true
imageRegistry: docker.io/fluent/fluent-bit:latest
imagePullPolicy: IfNotPresent
securityContext:
enabled: false
runAsUser: 1001
persistence:
size: 1Gi
storageClassName: netapp-file-backup
resources:
limits:
cpu: 100m
memory: 64Mi
requests:
cpu: 10m
memory: 16Mi

0 comments on commit 945b12e

Please sign in to comment.