kameshsampath.kubernetes_spices.kubectx (0.2.6) — inventory

Kubernetes contexts inventory source

Authors: Kamesh Sampath<@kamesh_sampath>

Install collection

Install with ansible-galaxy collection install kameshsampath.kubernetes_spices:==0.2.6


Add to requirements.yml

  collections:
    - name: kameshsampath.kubernetes_spices
      version: 0.2.6

Description

Builds a inventory to based on the contexts available as part of the $KUBECONFIG

Helps running the same playbook against multiple Kubernetes cluster contexts


Requirements

Inputs

    
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.