You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/networking/calico.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,11 +55,18 @@ To enable this mode in a cluster, add the following to the cluster spec:
55
55
calico:
56
56
crossSubnet: true
57
57
```
58
-
59
58
In the case of AWS, EC2 instances have source/destination checks enabled by default.
60
-
When you enable cross-subnet mode in kops, an addon controller ([k8s-ec2-srcdst](https://github.com/ottoyiu/k8s-ec2-srcdst))
59
+
When you enable cross-subnet mode in kops 1.19+, it is equivalent to:
60
+
```yaml
61
+
networking:
62
+
calico:
63
+
awsSrcDstCheck: Disable
64
+
IPIPMode: CrossSubnet
65
+
```
66
+
An IAM policy will be added to all nodes to allow Calico to execute `ec2:DescribeInstances` and `ec2:ModifyNetworkInterfaceAttribute`, as required when [awsSrcDstCheck](https://docs.projectcalico.org/reference/resources/felixconfig#spec) is set.
67
+
For older versions of kops, an addon controller ([k8s-ec2-srcdst](https://github.com/ottoyiu/k8s-ec2-srcdst))
61
68
will be deployed as a Pod (which will be scheduled on one of the masters) to facilitate the disabling of said source/destination address checks.
62
-
Only the masters have the IAM policy (`ec2:*`) to allow k8s-ec2-srcdst to execute `ec2:ModifyInstanceAttribute`.
69
+
Only the control plane nodes have an IAM policy to allow k8s-ec2-srcdst to execute `ec2:ModifyInstanceAttribute`.
description: 'ChainInsertMode controls whether Felix inserts rules to the top of iptables chains, or appends to the bottom. Leaving the default option is safest to prevent accidentally breaking connectivity. Default: ''insert'' (other options: ''append'')'
Copy file name to clipboardExpand all lines: upup/models/cloudup/resources/addons/networking.projectcalico.org/k8s-1.16.yaml.template
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3893,6 +3893,9 @@ spec:
3893
3893
# Enable Prometheus process metrics collection
3894
3894
- name: FELIX_PROMETHEUSPROCESSMETRICSENABLED
3895
3895
value: "{{- or .Networking.Calico.PrometheusProcessMetricsEnabled "true" }}"
3896
+
# Enable / Disable source/destination checks in AWS
3897
+
- name: FELIX_AWSSRCDSTCHECK
3898
+
value: "{{- if and (eq .CloudProvider "aws") (.Networking.Calico.CrossSubnet) -}}Disable{{- else -}} {{- or .Networking.Calico.AwsSrcDstCheck "DoNothing" -}} {{- end -}}"
3896
3899
securityContext:
3897
3900
privileged: true
3898
3901
resources:
@@ -4062,6 +4065,7 @@ metadata:
4062
4065
# pod) may not match the receiving machine's address.
4063
4066
#
4064
4067
# This only applies for AWS environments.
4068
+
# This is a deprecated setting, use awsSrcDstCheck instead
0 commit comments