Skupper Ansible Kubernetes workflow

The Kubernetes Ansible path applies Skupper resource YAML with skupper.v2.resource, retrieves a Link resource bundle with skupper.v2.token, and applies that bundle on the peer site with skupper.v2.resource.

Flow

resource module -> Site/Listener/Connector YAML
token module    -> Link/Secret YAML
resource module -> apply Link/Secret on peer site

Playbook Shape

- hosts: all
  tasks:
    - skupper.v2.resource:
        path: "{{ resources_path }}"
        kubeconfig: "{{ kubeconfig }}"
        namespace: "{{ namespace }}"
 
- hosts: west
  tasks:
    - skupper.v2.token:
        name: west
        type: link
        kubeconfig: "{{ kubeconfig }}"
        namespace: "{{ namespace }}"
      register: west_link
 
- hosts: east
  tasks:
    - skupper.v2.resource:
        def: "{{ hostvars['west']['west_link']['token'] }}"
        kubeconfig: "{{ kubeconfig }}"
        namespace: "{{ namespace }}"

Source

  • https://github.com/skupperproject/skupper-ansible/blob/main/README.md
  • https://github.com/skupperproject/skupper-ansible/blob/main/plugins/modules/resource.py
  • https://github.com/skupperproject/skupper-ansible/blob/main/plugins/modules/token.py