Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
  • v2.18.2
  • v2.19.0
21 results

ansible.md

Blame
  • ansible.md 7.59 KiB

    Ansible variables

    Inventory

    The inventory is composed of 3 groups:

    • kube-node : list of kubernetes nodes where the pods will run.
    • kube-master : list of servers where kubernetes master components (apiserver, scheduler, controller) will run.
    • etcd: list of servers to compose the etcd server. You should have at least 3 servers for failover purpose.

    Note: do not modify the children of k8s-cluster, like putting the etcd group into the k8s-cluster, unless you are certain to do that and you have it fully contained in the latter:

    k8s-cluster ⊂ etcd => kube-node ∩ etcd = etcd

    When kube-node contains etcd, you define your etcd cluster to be as well schedulable for Kubernetes workloads. If you want it a standalone, make sure those groups do not intersect. If you want the server to act both as master and node, the server must be defined on both groups kube-master and kube-node. If you want a standalone and unschedulable master, the server must be defined only in the kube-master and not kube-node.

    There are also two special groups:

    Below is a complete inventory example: