Howto teach my awx minikube cluster about my internal DNS resolvers at deployment time?

55 views
Skip to first unread message

Urs Rau

unread,
Jun 13, 2022, 6:24:48 AM6/13/22
to Ansible Project
I am using the new operator (v 0.22.0) method to deploy awx 21.1.0 into a test minikuke Kubernetes cluster using the basic install as documented in 


How or where to I set my awx related pods to know to use my internal dns resolvers to find my local linux and windows machines? 
Both winrm and kerberos totally depend on a fully working DNS, fr linux I could get away by setting the IP under the ansible_host var, but in my test setup the awx pods do not know about my internal zone dns servers and active directory domain controllers. 

How do I set this so the operator deploy injects that info into all its pods in the awx namespace? 

Thanks for any help or pointers. I can go and edit ephemeral pods and manually inject the info into the /etc/resov.conf, but in Kubernetes deployment that just feels wrong.

— 
Urs Rau

Urs Rau

unread,
Jun 13, 2022, 6:45:26 AM6/13/22
to ansible...@googlegroups.com
Replying to one's own question is a either a sign of oncoming madness or alternatively might be a sign that one wants to share what has been found 
( and also making sure in the process that next time around the answer can be found when searching with google. ;-) )

I found this article here helpful:


So in my case I put the following in a yaml file and then applied it with 'kubectl apply -f my-local-dns.yml'


apiVersion: v1
kind: ConfigMap
metadata:
  name: kube-dns
  namespace: kube-system
data:
  stubDomains: |
    {“example.dom”: [“10.100.150.100”, "10.100.150.200"]}
  upstreamNameservers: |
    [“1.0.0.2”, “1.1.1.2”]

HTH somebody else too. After this I could resolve and info my local zone hosts on the awx task and ee and web containers.

— 
Urs Rau


urs...@gmail.com

unread,
Jun 13, 2022, 11:51:33 AM6/13/22
to Ansible Project
Reply all
Reply to author
Forward
0 new messages