Add security group to allow access between kubernetes nodes
This commit is contained in:
commit
bf97422126
7
main.yaml
Normal file
7
main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
- name: Matrix Kubernetes IaC Deployment
|
||||||
|
hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Setup securitygroups.
|
||||||
|
ansible.builtin.include_tasks:
|
||||||
|
- file: securitygrouptasks.yaml
|
34
securitygrouptasks.yaml
Normal file
34
securitygrouptasks.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
---
|
||||||
|
- name: Create kubenode securitygroup
|
||||||
|
openstack.cloud.security_group:
|
||||||
|
state: present
|
||||||
|
name: kubenode
|
||||||
|
description: Kubenode security group to allow required traffic between nodes
|
||||||
|
|
||||||
|
- name: Create kubenode IPv4 ingress rule
|
||||||
|
openstack.cloud.security_group_rule:
|
||||||
|
security_group: kubenode
|
||||||
|
remote_group: kubenode
|
||||||
|
ether_type: IPv4
|
||||||
|
direction: ingress
|
||||||
|
|
||||||
|
- name: Create kubenode IPv4 egress rule
|
||||||
|
openstack.cloud.security_group_rule:
|
||||||
|
security_group: kubenode
|
||||||
|
remote_group: kubenode
|
||||||
|
ether_type: IPv4
|
||||||
|
direction: egress
|
||||||
|
|
||||||
|
- name: Create kubenode IPv6 ingress rule
|
||||||
|
openstack.cloud.security_group_rule:
|
||||||
|
security_group: kubenode
|
||||||
|
remote_group: kubenode
|
||||||
|
ether_type: IPv6
|
||||||
|
direction: ingress
|
||||||
|
|
||||||
|
- name: Create kubenode IPv6 egress rule
|
||||||
|
openstack.cloud.security_group_rule:
|
||||||
|
security_group: kubenode
|
||||||
|
remote_group: kubenode
|
||||||
|
ether_type: IPv6
|
||||||
|
direction: egress
|
Loading…
Reference in a new issue