kameshsampath / kameshsampath.kubernetes_spices / 0.2.6 / inventory / kubectx Kubernetes contexts inventory source Authors: Kamesh Sampath<@kamesh_sampath>kameshsampath.kubernetes_spices.kubectx (0.2.6) — inventory
Install with ansible-galaxy collection install kameshsampath.kubernetes_spices:==0.2.6
collections: - name: kameshsampath.kubernetes_spices version: 0.2.6
Builds a inventory to based on the contexts available as part of the $KUBECONFIG
Helps running the same playbook against multiple Kubernetes cluster contexts
plugin: choices: - kameshsampath.kubernetes_spices.kubectx description: token that ensures this is a source file for the 'k8s' plugin. required: true use_contexts: description: - Optional list of cluster context settings. If no connections are provided, the default I(~/.kube/config) and active context will be used. suboptions: kubeconfig: description: - Optional path to an existing Kubernetes config file where the context can be found. If not provided this will be set to the default KUBECONFIG file I(~/.kube/config). name: description: - Required name of the context.