-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: mountPropagation
option is not proposed for 'varlibcontainers', 'varlogs' and 'systemd' mounts
#833
Comments
mountPropagation
option is not proposed for 'varlibcontainers', 'varlogs' and 'systemd' mountsmountPropagation
option is not proposed for 'varlibcontainers', 'varlogs' and 'systemd' mounts
I propose using an
|
@wanjunlei @wenchajun what do you think? |
Maybe DefaultVolumesMountOptions *corev1.VolumeMount |
I don't think this is a default option
What we are expecting to do is defining a specific value for // MountPropagation option for internal mounts
// +kubebuilder:validation:Enum:=None;HostToContainer;Bidirectional
InternalMountPropagation *corev1.MountPropagationMode `json:"internalMountPropagation,omitempty"` [file pkg/operator/daemonset.go] internalMountPropagation := corev1.MountPropagationNone
if fb.Spec.InternalMountPropagation != nil {
internalMountPropagation = *fb.Spec.InternalMountPropagation
} [...]
VolumeMounts: []corev1.VolumeMount{
{
Name: "varlibcontainers",
ReadOnly: true,
MountPath: logPath,
MountPropagation: &internalMountPropagation,
},
{
Name: "varlogs",
ReadOnly: true,
MountPath: "/var/log/",
MountPropagation: &internalMountPropagation,
},
{
Name: "systemd",
ReadOnly: true,
MountPath: "/var/log/journal",
MountPropagation: &internalMountPropagation,
},
}
[...] |
@antrema your proposal is ok, adding a option only for MountPropagation is one way to go. |
Signed-off-by: Anthony TREUILLIER <anthony.treuillier@gmail.com>
mountPropagation option for internal mounts (#833)
Describe the issue
When creating a
FluentBit
instance, the default volumeMounts 'varlibcontainers', 'varlogs' and 'systemd' in the daemonSet created doesn't includemountPropagation
optionOn a Centos 7 cluster, I encounter problems regarding start/stop/restart of fluent-bit pods. This issue seems linked to this bug: rook/rook#3961.
A proposed workaround is to set
mountPropagation
option toHostToContainer
in fluent-bit daemonSet.To Reproduce
Create a fluent-bit instance as follow:
Expected behavior
Have a possibility to define
mountPropagation
option in fluent-bit daemonSetYour Environment
How did you install fluent operator?
I installed the fluent-operator as described in fluent-operator documentation
Additional context
No response
The text was updated successfully, but these errors were encountered: