Skip to content

Allow disabling mounting of /var/log #2041

Closed
@volleynator

Description

@volleynator

Is your feature request related to a problem? Please describe.
We are using a k8s cluster which disallows the mounting of hostPaths. However, we are able to mount a volume which contains all the logs a node produces via a feature our k8s provider calls "user host logging".
I want to use extraVolumeMount for this, however, I also need to disable the mount of /var/log at all:

func (r *Reconciler) generateVolumeMounts() (v []corev1.VolumeMount) {
        # make this optional
	v = []corev1.VolumeMount{
		{
			Name:      "varlogs",
			ReadOnly:  true,
			MountPath: "/var/log/",
		},
		{
			Name:      "config",
			MountPath: OperatorConfigPath,
		},
	}


Describe the solution you'd like
I want to be able to disable the mount of "/var/log"

Describe alternatives you've considered
Do not use the fluentBitSpec but run my own Daemonset of fluentBit

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgoPull requests that update Go codegood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions