This will update the Kubernetes CoreDNS service to forward login.microsoftonline.com to 1.1.1.1. Thank you patrickhuber
Put below code in coredns.yml
and then kubectl apply -f coredns.yml
. Ignore the errors.
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system