Skip to content

Commit

Permalink
Mount logs PVC in sidecar
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaswell-bcgov committed Jul 11, 2024
1 parent 945b12e commit c6eecf9
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions helm/templates/deployment-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,47 +109,20 @@ spec:
{{- if .Values.fluentbit.securityContext.enabled }}
securityContext: {{- omit .Values.fluentbit.securityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
env:
- name: SERVER_LOGFILE
value: /tmp/*.log
ports:
- name: metrics
containerPort: 2020
protocol: TCP
- name: http-plugin
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: metrics
initialDelaySeconds: 10
timeoutSeconds: 1
periodSeconds: 60
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: metrics
initialDelaySeconds: 10
timeoutSeconds: 1
periodSeconds: 60
successThreshold: 1
failureThreshold: 3
{{- if .Values.fluentbit.resources }}
resources: {{- toYaml .Values.fluentbit.resources | nindent 12 }}
{{- end }}
volumeMounts:
- name: fluentbit-config
mountPath: /fluent-bit/etc
- name: log-storage
mountPath: /tmp/
{{- end }}
volumes:
- configMap:
name: {{include "NotifyBC.fullname" .}}
name: config-volume
- name: log-storage
persistentVolumeClaim:
claimName: {{ include "NotifyBC.fullname" . }}-logs
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit c6eecf9

Please sign in to comment.