You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revamp volume configuration, fix issues introduced in 2.4.0 (#218)
* use emptydir volumes instead of hostpath defaults to avoid issues with readonly hosts
* set default path for hostPath if nothing is set
* make the chmod init container optional, fix the permission issues using fsgroup (see below)
* add missing runAsGroup configuration to container securitypolicy
* enable fsGroup 101 (fluentd) by default to get rid of the volume mount hack. the container will get 101 as a supplemental group and will be allowed to write on the volume
* rbac fixes for podsecurity policy roles and proper use of service account name
* generic KubernetesStorage implementation and use it for fluentd as well
| position_db | [KubernetesStorage](#KubernetesStorage) | nil | Add position db storage support. If nothing is configured a `hostPath` volume is used with the path `/opt/fluent-bit/<name of the logging CR>/pos`. |
128
+
| position_db | [KubernetesStorage](#KubernetesStorage) | nil | Add position db storage support. If nothing is configured an emptyDir volume will be used. |
129
129
| inputTail | [InputTail](./fluentbit.md#tail-inputtail) | {} | The tail input plugin allows to monitor one or several text files. |
130
130
| filterKubernetes | [FilterKubernetes](./fluentbit.md#kubernetes-filterkubernetes) | {} | Fluent Bit Kubernetes Filter allows to enrich your log files with Kubernetes metadata. |
131
131
| bufferStorage | [BufferStorage](./fluentbit.md#bufferstorage) | | Buffer Storage configures persistent buffer to avoid losing data in case of a failure |
132
-
| bufferStorageVolume | [KubernetesStorage](#KubernetesStorage) | nil | Volume definition for the Buffer Storage. If nothing is configured a `hostPath` volume is used with the path `/opt/fluent-bit/<name of the logging CR>/buf`. |
132
+
| bufferStorageVolume | [KubernetesStorage](#KubernetesStorage) | nil | Volume definition for the Buffer Storage. If nothing is configured an emptydir volume will be used. |
133
133
| customConfigSecret | string | "" | Custom secret to use as fluent-bit config.<br /> It must include all the config files necessary to run fluent-bit (_fluent-bit.conf_, _parsers*.conf_) |
134
134
135
135
**`logging` with custom fluent-bit annotations**
@@ -214,10 +214,20 @@ Define Kubernetes storage
214
214
215
215
| Name | Type | Default | Description |
216
216
|-----------|------|---------|-------------|
217
-
| host_path | [HostPathVolumeSource](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.12/#hostpathvolumesource-v1-core) | - | Represents a host path mapped into a pod. |
217
+
| host_path | [HostPathVolumeSource](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.12/#hostpathvolumesource-v1-core) | - | Represents a host path mapped into a pod. If path is empty, it will automatically be set to "/opt/logging-operator/<name of the logging CR>/<name of the volume>" |
218
+
| emptyDir | [EmptyDirVolumeSource](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.12/#emptydirvolumesource-v1-core) | - | Represents an empty directory for a pod. |
219
+
| pvc | [PersistentVolumeClaim](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.12/#persistentvolumeclaim-v1-core) | - | A PersistentVolumeClaim (PVC) is a request for storage by a user. |
218
220
221
+
#### Persistent Volume Claim
219
222
220
-
## outputs, clusteroutputs
223
+
| Name | Type | Default | Description |
224
+
|-----------|------|---------|-------------|
225
+
| spec | [PersistentVolumeClaimSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.12/#persistentvolumeclaimspec-v1-core) | - | Spec defines the desired characteristics of a volume requested by a pod author. |
226
+
| source | [PersistentVolumeClaimVolumeSource](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.12/#persistentvolumeclaimvolumesource-v1-core) | - | PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. |
227
+
228
+
The Persistent Volume Claim should be created with the given `spec` and with the `name` defined in the `source`'s `claimName`.
229
+
230
+
## Outputs, Clusteroutputs
221
231
222
232
Outputs are the final stage for a `logging flow`. You can define multiple `outputs` and attach them to multiple `flows`.
0 commit comments