The recommended setup is to check out all needed roles as submodules. Have a
look at ansible/
for a sample setup. This sample setup has not been tested and
should rather give an idea!
Here important variable lists are presented with their explanation.
Each kubernetes cluster has information which has to be shared between so many roles that they were established as convention. They are:
CIDR all other IPs except for kubernetes_ha_ip_intern
are contained in.
Network for service IPs.
Service IP of the DNS service.
Service IP of the Kubernetes API. Make this the first IP inside
kubernetes_service_cidr
.
External IP of the Kubernetes API. We are aware of the discrepancy between the
variable name stating intern
and the external nature. This IP is external to
the Kubernetes cluster's service subnet but still intern to the cluster routers.
DNS name leading to kubernetes_ha_ip_intern
. Only needs to be resolvable
behind the routers.
DNS name globally leading to the Kubernetes API.
Domain used for DNS names inside the cluster.
BGP AS number of this cluster.
Name of the worker group as defined in the inventory or similar.
Name of the master group as defined in the inventory or similar.
Name of the router group as defined in the inventory or similar.