Changes made to the CoreDNS ConfigMap do not persist after pf9-kube service restart
- Platform9 Managed Kubernetes - All Versions.
- When pf9-kube is restarted on the master nodes, the coredns configurations are reapplied using the default template to ensure that resources are consistent.
- This is basically achieved by applying the following template /opt/pf9/pf9-kube/conf/addons/dns/coredns.yaml . A kubectl apply is run on this coredns.yaml file.
- In order to make the changes made to coredns configMap persist across the service restarts you can make the changes to the existing coredns configMap as well as to the file /opt/pf9/pf9-kube/conf/addons/dns/coredns.yaml.
Note: This will not make the changes persist across the cluster upgrades, these changes will persist only across the service restarts.