Skip to content

Commit

Permalink
Merge pull request #1653 from kube-logging/backport-pvc-fix
Browse files Browse the repository at this point in the history
Enable using custom PVC without a template for the statefulset (for the buffer volume and also as extravolumes) (#1617)
  • Loading branch information
pepov authored Jan 29, 2024
2 parents ccb3f58 + cb68418 commit 34c83ba
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 187 deletions.
76 changes: 76 additions & 0 deletions config/samples/pvc-notemplate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
apiVersion: logging.banzaicloud.io/v1beta1
kind: Logging
metadata:
name: all-to-file
spec:
fluentd:
# image:
# tag: v1.16-ruby3.2-full
disablePvc: true
bufferStorageVolume:
pvc:
source:
claimName: manual2
readOnly: false
extraVolumes:
- containerName: fluentd
path: /manual
volume:
pvc:
source:
claimName: manual
readOnly: false
volumeName: manual
controlNamespace: default
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: manual
spec:
storageClassName: ""
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
volumeMode: Filesystem
volumeName: manual
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: manual2
spec:
storageClassName: ""
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
volumeMode: Filesystem
volumeName: manual2
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: manual
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 1Gi
hostPath:
path: /tmp/asd
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: manual2
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 1Gi
hostPath:
path: /tmp/asd2
182 changes: 0 additions & 182 deletions go.work.sum

This file was deleted.

Loading

0 comments on commit 34c83ba

Please sign in to comment.