How to add fileds to index pattren , so it can be filterd by in discover search

thanks for answering, sure you are right, the problem is that it just stopped working after and uninstall it once and installed it again but this time with a custom namespace, then everything stopped to work.
this question from my first install with the "default" namespace. as we not allowed to use the "default" namespace.
and even then it didn't get me all the info . like
kubernetes.pod.name
kubernetes.container.name

i saw allot of questions regarding the DNS with out any answer .. so I'm afraid my case will be the same