freehck.k8s_calico

freehck.k8s_calico

Deploy Calico CNI in Kubernetes (k8s)

Description

This role provides several Calico CNI definitions and runs kubectl apply -f <definition> to apply them. It is recommended that the user has access to kubectl (e.g., by having the correct .kube/config file).

I have gathered the Calico CNI definitions here and will update them as needed. I did this mainly because the Calico website is often unavailable.

Role Variables

k8s_calico_ver: The version of Calico to deploy.

Example

- hosts: k8s-master
  become: true
  vars:
    # k8s_base is a necessary dependency
    k8s_base_node_ip: "10.118.19.10"
    k8s_base_ver: "1.16.2-00"
    # k8s_init is another necessary dependency
    k8s_init_cidr: "192.168.0.0/16"
    k8s_init_node_ip: "10.118.19.10"
    k8s_init_node_name: "{{ inventory_hostname }}"
    # this role's configuration
    k8s_calico_ver: "v3.10"
  roles:
    - role: freehck.k8s_base
    - role: freehck.k8s_init
    - role: freehck.k8s_calico

Install

You can install this role from Ansible Galaxy:

ansible-galaxy install freehck.k8s_calico

License

MIT

Author Information

Dmitrii Kashin, freehck@freehck.ru

Informazioni sul progetto

install calico cni services in k8s

Installa
ansible-galaxy install freehck.k8s_calico
Licenza
Unknown
Download
229
Proprietario