Skip to content

Problem with dns resolution on a fluentd configCheck pod #1550

Answered by Earsil
Earsil asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I fixed this by patching logging-operator file ./pkg/resources/fluentd/appconfigmap.go and rebuilding it

I added this
DNSConfig: r.Logging.Spec.FluentdSpec.DNSConfig,
to following func

func (r *Reconciler) newCheckPod(hashKey string) *corev1.Pod {

	volumes := r.volumesCheckPod(hashKey)
	container := r.containerCheckPod(hashKey)
	initContainer := r.initContainerCheckPod()

	pod := &corev1.Pod{
		ObjectMeta: r.FluentdObjectMeta(fmt.Sprintf("fluentd-configcheck-%s", hashKey), ComponentConfigCheck),
		Spec: corev1.PodSpec{
			RestartPolicy:      corev1.RestartPolicyNever,
			ServiceAccountName: r.getServiceAccount(),
			NodeSelector:       r.Logging.Spec.FluentdSpec.NodeSelector,
			Tole…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Earsil
Comment options

You must be logged in to vote
1 reply
@Earsil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants