Hi -
I am still quite new to k8s but really trying to get better. I was working quite strongly now with launch configurations in microk8s and wanted to add the nameservers dns should use as arguments.
According to the documentation it should work - I tried
---
version: 0.1.0
addons:
- name: dns
args: [1.1.1.1, 8.8.8.8]
exactly as described here. [https://microk8s.io/docs/ref-launch-config].
(https://microk8s.io/docs/ref-launch-config)
It seems to simply always take only the first of the nameserver arguments according to the config map. Also using version 0.2 did not help.
What did work is following what is described herehttps://discuss.kubernetes.io/t/microk8s-addon-dns/22807 with disabling and then enabling the dns addon however this seems quite stupid and I want to avoid that.
I know that I can also on other ways change it retrospectively however it should work with the launch config right? Am I overlooking anything? Does the configmap I get with microk8s kubectl get configmap coredns -n kube-system -o yaml
not give the actual values in forward .?
Thanks a lot!