Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/calico-configuration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if calico version 3.30+ is installed

if calico version <= 3.29
* create network policy with action log (read more https://docs.tigera.io/calico/latest/network-policy/policy-rules/log-rules)
* WARNING: these logs are shown in journalctl **of the node where restricted workload (POD / Container) is running**
```yaml
apiVersion: projectcalico.org/v3
kind: NetworkPolicy
Expand Down
18 changes: 10 additions & 8 deletions charts/calico-configuration/templates/globalpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ spec:
# IP from https://github.com/kubernetes-sigs/kubespray/blob/v2.24.1/roles/kubespray-defaults/defaults/main/main.yml#L108
- action: Allow
protocol: UDP
nets:
- 169.254.25.10/32
ports:
- 53
destination:
nets:
- 169.254.25.10/32
ports:
- 53
- action: Allow
protocol: TCP
destination:
Expand All @@ -38,7 +39,8 @@ spec:
- 53
- action: Allow
protocol: TCP
nets:
- 169.254.25.10/32
ports:
- 53
destination:
nets:
- 169.254.25.10/32
ports:
- 53
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,20 @@ spec:
- action: Allow
protocol: TCP
destination:
nets:
- 10.0.0.0/8
- 192.168.0.0/16
- 172.16.0.0/12
# currently public IPs are used
# nets:
# - 10.0.0.0/8
# - 192.168.0.0/16
# - 172.16.0.0/12
ports:
- {{ .Values.networkPolicyEgressPorts.redis }}
- action: Allow
protocol: TCP
destination:
nets:
- 10.0.0.0/8
- 192.168.0.0/16
- 172.16.0.0/12
# currently public IPs are used
# nets:
# - 10.0.0.0/8
# - 192.168.0.0/16
# - 172.16.0.0/12
ports:
- {{ .Values.networkPolicyEgressPorts.rabbit }}
Loading