ansible-collections / community.digitalocean

This Ansible collection contains modules for assisting in the automation of the DigitalOcean cloud.
https://galaxy.ansible.com/community/digitalocean/
GNU General Public License v3.0
140 stars 57 forks source link

digital_ocean_firewall: support kubernetes_ids for source and destination rules #309

Open andytson opened 1 year ago

andytson commented 1 year ago
SUMMARY

Digital Ocean firewalls support defining which kubernetes clusters can be used for source or destination rules.

The ansible module doesn't yet support it

ISSUE TYPE
COMPONENT NAME

digital_ocean_firewall

ADDITIONAL INFORMATION

Allowing kubernetes clusters firewalling rules and cross communication between droplets and clusters within a private VPC

- digital_ocean_firewall:
    name: my-firewall
    inbound_rules:
      sources:
      - protocol: tcp
        ports:  "22"
        kubernetes_ids: ["{{ kubernetes_cluster_id }}"]
    tags: ["sample"]