Skip to content

Commit

Permalink
Enable using custom PVC without a template for the statefulset (for t…
Browse files Browse the repository at this point in the history
…he buffer volume and also as extravolumes) (#1617)

Signed-off-by: Peter Wilcsinszky <peter.wilcsinszky@axoflow.com>
Signed-off-by: Bhaskar Reddy Byreddy <bbyreddy@softwareag.com>
Co-authored-by: Peter Wilcsinszky <peter.wilcsinszky@axoflow.com>
  • Loading branch information
bbyreddy and pepov committed Jan 29, 2024
1 parent ccb3f58 commit cb68418
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 cb68418

Please sign in to comment.