Skip to content

Commit

Permalink
Merge pull request #16881 from hakman/automated-cherry-pick-of-#16879-#…
Browse files Browse the repository at this point in the history
…16868-upstream-release-1.30

Automated cherry pick of #16879: Ignore blackhole NAT routes
#16868: aws: Update VPC CNI to v1.18.5
  • Loading branch information
k8s-ci-robot authored Oct 6, 2024
2 parents 65afc30 + 7b0ad7c commit 41e7420
Show file tree
Hide file tree
Showing 18 changed files with 410 additions and 72 deletions.
4 changes: 2 additions & 2 deletions nodeup/pkg/model/networking/amazon-vpc-routed-eni.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ ManageForeignRoutingPolicyRules=no
})
}

// Running Amazon VPC CNI on Ubuntu 22.04 and later or any version of al2023 requires
// Running Amazon VPC CNI on Ubuntu 22.04 or any version of al2023 requires
// setting MACAddressPolicy to `none` (ref: https://github.com/aws/amazon-vpc-cni-k8s/issues/2103
// & https://github.com/kubernetes/kops/issues/16255)
if (b.Distribution.IsUbuntu() && b.Distribution.Version() >= 22.04) ||
if (b.Distribution.IsUbuntu() && b.Distribution.Version() == 22.04) ||
b.Distribution == distributions.DistributionAmazonLinux2023 {
contents := `
[Match]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ spec:
version: 9.99.0
- id: k8s-1.16
manifest: networking.amazon-vpc-routed-eni/k8s-1.16.yaml
manifestHash: 516820e30ab3bc0817c018c36ffd1841d5e6c53b553a0ddd8ae98d7d3779c0fc
manifestHash: a60a3c1fc05a99c395f58df484510bc606cddb3b7131f71da76d2ca85c882384
name: networking.amazon-vpc-routed-eni
needsRollingUpdate: all
selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,40 @@ spec:
- name: v1alpha1
schema:
openAPIV3Schema:
description: ENIConfig is the Schema for the eniconfigs API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: ENIConfigSpec defines the desired state of ENIConfig
properties:
securityGroups:
items:
type: string
type: array
subnet:
type: string
required:
- subnet
type: object
status:
description: ENIConfigStatus defines the observed state of ENIConfig
type: object
type: object
x-kubernetes-preserve-unknown-fields: true
served: true
Expand Down Expand Up @@ -275,7 +309,7 @@ metadata:
app.kubernetes.io/instance: aws-vpc-cni
app.kubernetes.io/managed-by: kops
app.kubernetes.io/name: aws-node
app.kubernetes.io/version: v1.18.1
app.kubernetes.io/version: v1.18.5
k8s-app: aws-node
role.kubernetes.io/networking: "1"
name: aws-node
Expand All @@ -300,7 +334,7 @@ metadata:
app.kubernetes.io/instance: aws-vpc-cni
app.kubernetes.io/managed-by: kops
app.kubernetes.io/name: aws-node
app.kubernetes.io/version: v1.18.1
app.kubernetes.io/version: v1.18.5
k8s-app: aws-node
role.kubernetes.io/networking: "1"
name: amazon-vpc-cni
Expand All @@ -317,7 +351,7 @@ metadata:
app.kubernetes.io/instance: aws-vpc-cni
app.kubernetes.io/managed-by: kops
app.kubernetes.io/name: aws-node
app.kubernetes.io/version: v1.18.1
app.kubernetes.io/version: v1.18.5
k8s-app: aws-node
role.kubernetes.io/networking: "1"
name: aws-node
Expand Down Expand Up @@ -398,7 +432,7 @@ metadata:
app.kubernetes.io/instance: aws-vpc-cni
app.kubernetes.io/managed-by: kops
app.kubernetes.io/name: aws-node
app.kubernetes.io/version: v1.18.1
app.kubernetes.io/version: v1.18.5
k8s-app: aws-node
role.kubernetes.io/networking: "1"
name: aws-node
Expand All @@ -422,7 +456,7 @@ metadata:
app.kubernetes.io/instance: aws-vpc-cni
app.kubernetes.io/managed-by: kops
app.kubernetes.io/name: aws-node
app.kubernetes.io/version: v1.18.1
app.kubernetes.io/version: v1.18.5
k8s-app: aws-node
role.kubernetes.io/networking: "1"
name: aws-node
Expand Down Expand Up @@ -498,10 +532,16 @@ spec:
value: "false"
- name: ENABLE_PREFIX_DELEGATION
value: "false"
- name: ENABLE_SUBNET_DISCOVERY
value: "true"
- name: NETWORK_POLICY_ENFORCING_MODE
value: standard
- name: WARM_ENI_TARGET
value: "1"
- name: WARM_PREFIX_TARGET
value: "1"
- name: VPC_CNI_VERSION
value: v1.18.5
- name: MY_NODE_NAME
valueFrom:
fieldRef:
Expand All @@ -514,7 +554,7 @@ spec:
fieldPath: metadata.name
- name: CLUSTER_NAME
value: minimal.example.com
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni:v1.18.1
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni:v1.18.5
livenessProbe:
exec:
command:
Expand Down Expand Up @@ -561,6 +601,7 @@ spec:
- --enable-network-policy=false
- --enable-cloudwatch-logs=false
- --enable-policy-event-logs=false
- --log-file=/var/log/aws-routed-eni/network-policy-agent.log
- --metrics-bind-addr=:8162
- --health-probe-bind-addr=:8163
- --conntrack-cache-cleanup-period=300
Expand All @@ -570,7 +611,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-network-policy-agent:v1.1.1
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-network-policy-agent:v1.1.3
name: aws-eks-nodeagent
resources:
requests:
Expand All @@ -596,7 +637,7 @@ spec:
value: "false"
- name: ENABLE_IPv6
value: "false"
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.18.1
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.18.5
name: aws-vpc-cni-init
resources:
requests:
Expand Down Expand Up @@ -631,6 +672,7 @@ spec:
name: run-dir
- hostPath:
path: /run/xtables.lock
type: FileOrCreate
name: xtables-lock
updateStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ spec:
version: 9.99.0
- id: k8s-1.16
manifest: networking.amazon-vpc-routed-eni/k8s-1.16.yaml
manifestHash: 516820e30ab3bc0817c018c36ffd1841d5e6c53b553a0ddd8ae98d7d3779c0fc
manifestHash: a60a3c1fc05a99c395f58df484510bc606cddb3b7131f71da76d2ca85c882384
name: networking.amazon-vpc-routed-eni
needsRollingUpdate: all
selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,40 @@ spec:
- name: v1alpha1
schema:
openAPIV3Schema:
description: ENIConfig is the Schema for the eniconfigs API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: ENIConfigSpec defines the desired state of ENIConfig
properties:
securityGroups:
items:
type: string
type: array
subnet:
type: string
required:
- subnet
type: object
status:
description: ENIConfigStatus defines the observed state of ENIConfig
type: object
type: object
x-kubernetes-preserve-unknown-fields: true
served: true
Expand Down Expand Up @@ -275,7 +309,7 @@ metadata:
app.kubernetes.io/instance: aws-vpc-cni
app.kubernetes.io/managed-by: kops
app.kubernetes.io/name: aws-node
app.kubernetes.io/version: v1.18.1
app.kubernetes.io/version: v1.18.5
k8s-app: aws-node
role.kubernetes.io/networking: "1"
name: aws-node
Expand All @@ -300,7 +334,7 @@ metadata:
app.kubernetes.io/instance: aws-vpc-cni
app.kubernetes.io/managed-by: kops
app.kubernetes.io/name: aws-node
app.kubernetes.io/version: v1.18.1
app.kubernetes.io/version: v1.18.5
k8s-app: aws-node
role.kubernetes.io/networking: "1"
name: amazon-vpc-cni
Expand All @@ -317,7 +351,7 @@ metadata:
app.kubernetes.io/instance: aws-vpc-cni
app.kubernetes.io/managed-by: kops
app.kubernetes.io/name: aws-node
app.kubernetes.io/version: v1.18.1
app.kubernetes.io/version: v1.18.5
k8s-app: aws-node
role.kubernetes.io/networking: "1"
name: aws-node
Expand Down Expand Up @@ -398,7 +432,7 @@ metadata:
app.kubernetes.io/instance: aws-vpc-cni
app.kubernetes.io/managed-by: kops
app.kubernetes.io/name: aws-node
app.kubernetes.io/version: v1.18.1
app.kubernetes.io/version: v1.18.5
k8s-app: aws-node
role.kubernetes.io/networking: "1"
name: aws-node
Expand All @@ -422,7 +456,7 @@ metadata:
app.kubernetes.io/instance: aws-vpc-cni
app.kubernetes.io/managed-by: kops
app.kubernetes.io/name: aws-node
app.kubernetes.io/version: v1.18.1
app.kubernetes.io/version: v1.18.5
k8s-app: aws-node
role.kubernetes.io/networking: "1"
name: aws-node
Expand Down Expand Up @@ -498,10 +532,16 @@ spec:
value: "false"
- name: ENABLE_PREFIX_DELEGATION
value: "false"
- name: ENABLE_SUBNET_DISCOVERY
value: "true"
- name: NETWORK_POLICY_ENFORCING_MODE
value: standard
- name: WARM_ENI_TARGET
value: "1"
- name: WARM_PREFIX_TARGET
value: "1"
- name: VPC_CNI_VERSION
value: v1.18.5
- name: MY_NODE_NAME
valueFrom:
fieldRef:
Expand All @@ -514,7 +554,7 @@ spec:
fieldPath: metadata.name
- name: CLUSTER_NAME
value: minimal.example.com
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni:v1.18.1
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni:v1.18.5
livenessProbe:
exec:
command:
Expand Down Expand Up @@ -561,6 +601,7 @@ spec:
- --enable-network-policy=false
- --enable-cloudwatch-logs=false
- --enable-policy-event-logs=false
- --log-file=/var/log/aws-routed-eni/network-policy-agent.log
- --metrics-bind-addr=:8162
- --health-probe-bind-addr=:8163
- --conntrack-cache-cleanup-period=300
Expand All @@ -570,7 +611,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-network-policy-agent:v1.1.1
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-network-policy-agent:v1.1.3
name: aws-eks-nodeagent
resources:
requests:
Expand All @@ -596,7 +637,7 @@ spec:
value: "false"
- name: ENABLE_IPv6
value: "false"
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.18.1
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.18.5
name: aws-vpc-cni-init
resources:
requests:
Expand Down Expand Up @@ -631,6 +672,7 @@ spec:
name: run-dir
- hostPath:
path: /run/xtables.lock
type: FileOrCreate
name: xtables-lock
updateStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ spec:
version: 9.99.0
- id: k8s-1.16
manifest: networking.amazon-vpc-routed-eni/k8s-1.16.yaml
manifestHash: 516820e30ab3bc0817c018c36ffd1841d5e6c53b553a0ddd8ae98d7d3779c0fc
manifestHash: a60a3c1fc05a99c395f58df484510bc606cddb3b7131f71da76d2ca85c882384
name: networking.amazon-vpc-routed-eni
needsRollingUpdate: all
selector:
Expand Down
Loading

0 comments on commit 41e7420

Please sign in to comment.