azure icon indicating copy to clipboard operation
azure copied to clipboard

Helm

Open tman5 opened this issue 4 years ago • 2 comments

SUMMARY

When using the az_aks modules, have the ability to use the Ansible helm modules that are authenticated with the other Ansible modules

ISSUE TYPE
  • Currently to use helm against an AKS cluster you must use the az cli commands that will modify your local kubectl config to authenticate with the cluster. When using Ansible modules it would be nice to have the ability to use helm Ansible modules against an AKS cluster. Currently with the az_aks module I do not see anyway to use helm since the authentication is all done in the backend.
COMPONENT NAME

az_aks

ADDITIONAL INFORMATION

tman5 avatar Nov 09 '21 16:11 tman5

@tman5 Thank you for submitting the question, can you provide more information on the requirements? Helps us solve this problem. Thank you very much!

Fred-sun avatar Nov 12 '21 01:11 Fred-sun

Sure. One of the challenges with helm and kubectl is that they both rely on config in your home directory in ~/.kube/config.

The ansible modules for helm and kubectl both rely on this file to authenticate to the AKS cluster.

az CLI can populate this file with authentication cert information when you call the appropriate command.

What I was hoping for the azure ansible modules is one of 2 things:

  • Could it have a section to populate your local kubeconfig? You are already authenticated when running the modules
  • Since you are already authenticated, could it somehow pass kubectl and helm commands to the backend AKS cluster?

tman5 avatar Nov 12 '21 15:11 tman5