Skip to content
Closed
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
33 changes: 33 additions & 0 deletions templates/addons/calico.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4141,3 +4141,36 @@ spec:

---
# Source: calico/templates/configure-canal.yaml

---
# This network policy explicitly ensures that container-originating TCP traffic bound for the reserved Azure IP endpoint is blocked
# to remediate https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-27075.
apiVersion: crd.projectcalico.org/v1
kind: GlobalNetworkPolicy
metadata:
name: deny-azure-internal
spec:
order: 0
applyOnForward: true
types:
- Egress
egress:
- action: Deny
protocol: TCP
destination:
nets:
- 168.63.129.16/32
---
apiVersion: crd.projectcalico.org/v1
kind: GlobalNetworkPolicy
metadata:
name: default-allow
spec:
applyOnForward: true
types:
- Egress
- Ingress
egress:
- action: Allow
ingress:
- action: Allow
10 changes: 9 additions & 1 deletion templates/test/ci/cluster-template-prow-ci-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2837,7 +2837,15 @@ data:
\ name: calico-kube-controllers\n namespace: kube-system\n labels:\n k8s-app:
calico-kube-controllers\nspec:\n maxUnavailable: 1\n selector:\n matchLabels:\n
\ k8s-app: calico-kube-controllers\n---\n# Source: calico/templates/calico-etcd-secrets.yaml\n\n---\n#
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n"
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n\n---\n#
This network policy explicitly ensures that container-originating TCP traffic
bound for the reserved Azure IP endpoint is blocked\n# to remediate https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-27075.\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: deny-azure-internal\nspec:\n
\ order: 0\n applyOnForward: true\n types:\n - Egress\n egress: \n - action:
Deny\n protocol: TCP\n destination:\n nets:\n - 168.63.129.16/32\n---\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: default-allow\nspec:\n
\ applyOnForward: true\n types:\n - Egress\n - Ingress\n egress:\n - action:
Allow\n ingress:\n - action: Allow\n"
kind: ConfigMap
metadata:
annotations:
Expand Down
10 changes: 9 additions & 1 deletion templates/test/ci/cluster-template-prow-custom-vnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2702,7 +2702,15 @@ data:
\ name: calico-kube-controllers\n namespace: kube-system\n labels:\n k8s-app:
calico-kube-controllers\nspec:\n maxUnavailable: 1\n selector:\n matchLabels:\n
\ k8s-app: calico-kube-controllers\n---\n# Source: calico/templates/calico-etcd-secrets.yaml\n\n---\n#
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n"
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n\n---\n#
This network policy explicitly ensures that container-originating TCP traffic
bound for the reserved Azure IP endpoint is blocked\n# to remediate https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-27075.\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: deny-azure-internal\nspec:\n
\ order: 0\n applyOnForward: true\n types:\n - Egress\n egress: \n - action:
Deny\n protocol: TCP\n destination:\n nets:\n - 168.63.129.16/32\n---\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: default-allow\nspec:\n
\ applyOnForward: true\n types:\n - Egress\n - Ingress\n egress:\n - action:
Allow\n ingress:\n - action: Allow\n"
kind: ConfigMap
metadata:
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3009,7 +3009,15 @@ data:
\ name: calico-kube-controllers\n namespace: kube-system\n labels:\n k8s-app:
calico-kube-controllers\nspec:\n maxUnavailable: 1\n selector:\n matchLabels:\n
\ k8s-app: calico-kube-controllers\n---\n# Source: calico/templates/calico-etcd-secrets.yaml\n\n---\n#
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n"
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n\n---\n#
This network policy explicitly ensures that container-originating TCP traffic
bound for the reserved Azure IP endpoint is blocked\n# to remediate https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-27075.\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: deny-azure-internal\nspec:\n
\ order: 0\n applyOnForward: true\n types:\n - Egress\n egress: \n - action:
Deny\n protocol: TCP\n destination:\n nets:\n - 168.63.129.16/32\n---\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: default-allow\nspec:\n
\ applyOnForward: true\n types:\n - Egress\n - Ingress\n egress:\n - action:
Allow\n ingress:\n - action: Allow\n"
kind: ConfigMap
metadata:
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2823,7 +2823,15 @@ data:
\ name: calico-kube-controllers\n namespace: kube-system\n labels:\n k8s-app:
calico-kube-controllers\nspec:\n maxUnavailable: 1\n selector:\n matchLabels:\n
\ k8s-app: calico-kube-controllers\n---\n# Source: calico/templates/calico-etcd-secrets.yaml\n\n---\n#
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n"
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n\n---\n#
This network policy explicitly ensures that container-originating TCP traffic
bound for the reserved Azure IP endpoint is blocked\n# to remediate https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-27075.\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: deny-azure-internal\nspec:\n
\ order: 0\n applyOnForward: true\n types:\n - Egress\n egress: \n - action:
Deny\n protocol: TCP\n destination:\n nets:\n - 168.63.129.16/32\n---\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: default-allow\nspec:\n
\ applyOnForward: true\n types:\n - Egress\n - Ingress\n egress:\n - action:
Allow\n ingress:\n - action: Allow\n"
kind: ConfigMap
metadata:
annotations:
Expand Down
10 changes: 9 additions & 1 deletion templates/test/ci/cluster-template-prow-machine-pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2676,7 +2676,15 @@ data:
\ name: calico-kube-controllers\n namespace: kube-system\n labels:\n k8s-app:
calico-kube-controllers\nspec:\n maxUnavailable: 1\n selector:\n matchLabels:\n
\ k8s-app: calico-kube-controllers\n---\n# Source: calico/templates/calico-etcd-secrets.yaml\n\n---\n#
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n"
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n\n---\n#
This network policy explicitly ensures that container-originating TCP traffic
bound for the reserved Azure IP endpoint is blocked\n# to remediate https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-27075.\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: deny-azure-internal\nspec:\n
\ order: 0\n applyOnForward: true\n types:\n - Egress\n egress: \n - action:
Deny\n protocol: TCP\n destination:\n nets:\n - 168.63.129.16/32\n---\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: default-allow\nspec:\n
\ applyOnForward: true\n types:\n - Egress\n - Ingress\n egress:\n - action:
Allow\n ingress:\n - action: Allow\n"
kind: ConfigMap
metadata:
annotations:
Expand Down
10 changes: 9 additions & 1 deletion templates/test/ci/cluster-template-prow-nvidia-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9031,7 +9031,15 @@ data:
\ name: calico-kube-controllers\n namespace: kube-system\n labels:\n k8s-app:
calico-kube-controllers\nspec:\n maxUnavailable: 1\n selector:\n matchLabels:\n
\ k8s-app: calico-kube-controllers\n---\n# Source: calico/templates/calico-etcd-secrets.yaml\n\n---\n#
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n"
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n\n---\n#
This network policy explicitly ensures that container-originating TCP traffic
bound for the reserved Azure IP endpoint is blocked\n# to remediate https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-27075.\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: deny-azure-internal\nspec:\n
\ order: 0\n applyOnForward: true\n types:\n - Egress\n egress: \n - action:
Deny\n protocol: TCP\n destination:\n nets:\n - 168.63.129.16/32\n---\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: default-allow\nspec:\n
\ applyOnForward: true\n types:\n - Egress\n - Ingress\n egress:\n - action:
Allow\n ingress:\n - action: Allow\n"
kind: ConfigMap
metadata:
annotations:
Expand Down
10 changes: 9 additions & 1 deletion templates/test/ci/cluster-template-prow-private.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,15 @@ data:
\ name: calico-kube-controllers\n namespace: kube-system\n labels:\n k8s-app:
calico-kube-controllers\nspec:\n maxUnavailable: 1\n selector:\n matchLabels:\n
\ k8s-app: calico-kube-controllers\n---\n# Source: calico/templates/calico-etcd-secrets.yaml\n\n---\n#
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n"
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n\n---\n#
This network policy explicitly ensures that container-originating TCP traffic
bound for the reserved Azure IP endpoint is blocked\n# to remediate https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-27075.\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: deny-azure-internal\nspec:\n
\ order: 0\n applyOnForward: true\n types:\n - Egress\n egress: \n - action:
Deny\n protocol: TCP\n destination:\n nets:\n - 168.63.129.16/32\n---\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: default-allow\nspec:\n
\ applyOnForward: true\n types:\n - Egress\n - Ingress\n egress:\n - action:
Allow\n ingress:\n - action: Allow\n"
kind: ConfigMap
metadata:
annotations:
Expand Down
10 changes: 9 additions & 1 deletion templates/test/ci/cluster-template-prow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2691,7 +2691,15 @@ data:
\ name: calico-kube-controllers\n namespace: kube-system\n labels:\n k8s-app:
calico-kube-controllers\nspec:\n maxUnavailable: 1\n selector:\n matchLabels:\n
\ k8s-app: calico-kube-controllers\n---\n# Source: calico/templates/calico-etcd-secrets.yaml\n\n---\n#
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n"
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n\n---\n#
This network policy explicitly ensures that container-originating TCP traffic
bound for the reserved Azure IP endpoint is blocked\n# to remediate https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-27075.\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: deny-azure-internal\nspec:\n
\ order: 0\n applyOnForward: true\n types:\n - Egress\n egress: \n - action:
Deny\n protocol: TCP\n destination:\n nets:\n - 168.63.129.16/32\n---\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: default-allow\nspec:\n
\ applyOnForward: true\n types:\n - Egress\n - Ingress\n egress:\n - action:
Allow\n ingress:\n - action: Allow\n"
kind: ConfigMap
metadata:
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2766,7 +2766,15 @@ data:
\ name: calico-kube-controllers\n namespace: kube-system\n labels:\n k8s-app:
calico-kube-controllers\nspec:\n maxUnavailable: 1\n selector:\n matchLabels:\n
\ k8s-app: calico-kube-controllers\n---\n# Source: calico/templates/calico-etcd-secrets.yaml\n\n---\n#
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n"
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n\n---\n#
This network policy explicitly ensures that container-originating TCP traffic
bound for the reserved Azure IP endpoint is blocked\n# to remediate https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-27075.\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: deny-azure-internal\nspec:\n
\ order: 0\n applyOnForward: true\n types:\n - Egress\n egress: \n - action:
Deny\n protocol: TCP\n destination:\n nets:\n - 168.63.129.16/32\n---\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: default-allow\nspec:\n
\ applyOnForward: true\n types:\n - Egress\n - Ingress\n egress:\n - action:
Allow\n ingress:\n - action: Allow\n"
kind: ConfigMap
metadata:
annotations:
Expand Down
10 changes: 9 additions & 1 deletion templates/test/dev/cluster-template-custom-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2780,7 +2780,15 @@ data:
\ name: calico-kube-controllers\n namespace: kube-system\n labels:\n k8s-app:
calico-kube-controllers\nspec:\n maxUnavailable: 1\n selector:\n matchLabels:\n
\ k8s-app: calico-kube-controllers\n---\n# Source: calico/templates/calico-etcd-secrets.yaml\n\n---\n#
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n"
Source: calico/templates/calico-typha.yaml\n\n---\n# Source: calico/templates/configure-canal.yaml\n\n---\n#
This network policy explicitly ensures that container-originating TCP traffic
bound for the reserved Azure IP endpoint is blocked\n# to remediate https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-27075.\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: deny-azure-internal\nspec:\n
\ order: 0\n applyOnForward: true\n types:\n - Egress\n egress: \n - action:
Deny\n protocol: TCP\n destination:\n nets:\n - 168.63.129.16/32\n---\napiVersion:
crd.projectcalico.org/v1\nkind: GlobalNetworkPolicy\nmetadata:\n name: default-allow\nspec:\n
\ applyOnForward: true\n types:\n - Egress\n - Ingress\n egress:\n - action:
Allow\n ingress:\n - action: Allow\n"
kind: ConfigMap
metadata:
annotations:
Expand Down