How do you manage Kubernetes resources with Ansible?
IntermediateScenarioAWX, Cloud and Large-Scale Operations
Answer
Situation read → Ansible and k8s.
What I'd do → Use kubernetes.core.k8s and kubernetes.core.helm modules from localhost.
- kubernetes.core.helm:
name: ingress
chart_ref: ingress-nginx/ingress-nginx
release_namespace: ingress
create_namespace: true
values: { controller: { replicaCount: 3 } }
Why → Good for bootstrapping clusters and glue; GitOps tools (Argo CD) own the steady state.
Interview tip → Install the kubernetes Python package on the controller.
More on AWX, Cloud and Large-Scale Operations
Your company wants a self-service UI for running playbooks with RBAC. What do you propose?BeginnerHow do you run AWX on Kubernetes?BeginnerA job template should prompt for the target limit and a version, with validation.IntermediateYou need provisioning followed by configuration followed by an approval and then deploy.IntermediateA dynamic inventory source in AWX syncs slowly and stale hosts remain.IntermediateYou manage 5,000 servers and a single job takes hours.Advanced