Skip to content

Commit b8fa520

Browse files
aws-vpc-cni: v1.19.4 (#1209)
Co-authored-by: eks-bot <eks-bot@users.noreply.github.com>
1 parent 4d9b8e5 commit b8fa520

File tree

6 files changed

+72
-10
lines changed

6 files changed

+72
-10
lines changed

stable/aws-vpc-cni/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: aws-vpc-cni
3-
version: 1.19.3
4-
appVersion: "v1.19.3"
3+
version: 1.19.4
4+
appVersion: "v1.19.4"
55
description: A Helm chart for the AWS VPC CNI
66
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
77
home: https://github.com/aws/amazon-vpc-cni-k8s

stable/aws-vpc-cni/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ The following table lists the configurable parameters for this chart and their d
4848
| `minimumWindowsIPTarget`| Minimum IP target value for Windows prefix delegation | `3` |
4949
| `branchENICooldown` | Number of seconds that branch ENIs remain in cooldown | `60` |
5050
| `fullnameOverride` | Override the fullname of the chart | `aws-node` |
51-
| `image.tag` | Image tag | `v1.19.3` |
51+
| `image.tag` | Image tag | `v1.19.4` |
5252
| `image.domain` | ECR repository domain | `amazonaws.com` |
5353
| `image.region` | ECR repository region to use. Should match your cluster | `us-west-2` |
5454
| `image.endpoint` | ECR repository endpoint to use. | `ecr` |
5555
| `image.account` | ECR repository account number | `602401143452` |
5656
| `image.pullPolicy` | Container pull policy | `IfNotPresent` |
5757
| `image.override` | A custom docker image to use | `nil` |
5858
| `imagePullSecrets` | Docker registry pull secret | `[]` |
59-
| `init.image.tag` | Image tag | `v1.19.3` |
59+
| `init.image.tag` | Image tag | `v1.19.4` |
6060
| `init.image.domain` | ECR repository domain | `amazonaws.com` |
6161
| `init.image.region` | ECR repository region to use. Should match your cluster | `us-west-2` |
6262
| `init.image.endpoint` | ECR repository endpoint to use. | `ecr` |
@@ -69,7 +69,7 @@ The following table lists the configurable parameters for this chart and their d
6969
| `originalMatchLabels` | Use the original daemonset matchLabels | `false` |
7070
| `nameOverride` | Override the name of the chart | `aws-node` |
7171
| `nodeAgent.enabled` | If the Node Agent container should be created | `true` |
72-
| `nodeAgent.image.tag` | Image tag for Node Agent | `v1.2.0` |
72+
| `nodeAgent.image.tag` | Image tag for Node Agent | `v1.2.1` |
7373
| `nodeAgent.image.domain`| ECR repository domain | `amazonaws.com` |
7474
| `nodeAgent.image.region`| ECR repository region to use. Should match your cluster | `us-west-2` |
7575
| `nodeAgent.image.endpoint` | ECR repository endpoint to use. | `ecr` |

stable/aws-vpc-cni/templates/daemonset.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,13 @@ spec:
8181
timeoutSeconds: {{ .Values.readinessProbeTimeoutSeconds }}
8282
env:
8383
{{- range $key, $value := .Values.env }}
84+
{{- $skipKey := and (eq $key "NETWORK_POLICY_ENFORCING_MODE") (not $.Values.nodeAgent.enabled) }}
85+
{{- if not $skipKey }}
8486
- name: {{ $key }}
8587
value: {{ $value | quote }}
88+
{{- else }}
89+
# Skipping NETWORK_POLICY_ENFORCING_MODE because nodeAgent is disabled
90+
{{- end }}
8691
{{- end }}
8792
{{- with .Values.extraEnv }}
8893
{{- toYaml .| nindent 12 }}
@@ -128,6 +133,9 @@ spec:
128133
- name: aws-eks-nodeagent
129134
image: {{ include "aws-vpc-cni.nodeAgentImage" . }}
130135
imagePullPolicy: {{ .Values.nodeAgent.image.pullPolicy }}
136+
ports:
137+
- containerPort: {{ .Values.nodeAgent.metricsBindAddr}}
138+
name: agentmetrics
131139
env:
132140
- name: MY_NODE_NAME
133141
valueFrom:

stable/aws-vpc-cni/templates/eniconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
apiVersion: crd.k8s.amazonaws.com/v1alpha1
44
kind: ENIConfig
55
metadata:
6-
name: {{ $key }}
6+
name: "{{ $key }}"
77
spec:
88
{{- if $value.securityGroups }}
99
securityGroups:
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{{- if .Values.podMonitor.create }}
2+
apiVersion: monitoring.coreos.com/v1
3+
kind: PodMonitor
4+
metadata:
5+
name: {{ include "aws-vpc-cni.fullname" . }}
6+
namespace: {{ .Release.Namespace }}
7+
labels:
8+
{{- with .Values.podMonitor.labels }}
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
11+
{{- with .Values.podMonitor.annotations }}
12+
annotations:
13+
{{- toYaml . | nindent 4 }}
14+
{{- end }}
15+
spec:
16+
jobLabel: {{ include "aws-vpc-cni.fullname" . }}
17+
namespaceSelector:
18+
matchNames:
19+
- {{ .Release.Namespace }}
20+
podMetricsEndpoints:
21+
- interval: {{ .Values.podMonitor.interval }}
22+
path: /metrics
23+
port: metrics
24+
{{- with .Values.podMonitor.relabelings }}
25+
relabelings:
26+
{{- toYaml . | nindent 6 }}
27+
{{- end }}
28+
{{- if .Values.nodeAgent.enabled }}
29+
- interval: {{ .Values.podMonitor.interval }}
30+
path: /metrics
31+
port: agentmetrics
32+
{{- with .Values.podMonitor.relabelings }}
33+
relabelings:
34+
{{- toYaml . | nindent 6 }}
35+
{{- end }}
36+
{{- end }}
37+
selector:
38+
matchLabels:
39+
k8s-app: aws-node
40+
{{- end }}

stable/aws-vpc-cni/values.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ nameOverride: aws-node
88

99
init:
1010
image:
11-
tag: v1.19.3
11+
tag: v1.19.4
1212
domain: amazonaws.com
1313
region: us-west-2
1414
endpoint: ecr
@@ -27,7 +27,7 @@ init:
2727
nodeAgent:
2828
enabled: true
2929
image:
30-
tag: v1.2.0
30+
tag: v1.2.1
3131
domain: amazonaws.com
3232
region: us-west-2
3333
endpoint: ecr
@@ -51,7 +51,7 @@ nodeAgent:
5151
resources: {}
5252

5353
image:
54-
tag: v1.19.3
54+
tag: v1.19.4
5555
domain: amazonaws.com
5656
region: us-west-2
5757
endpoint: ecr
@@ -85,7 +85,7 @@ env:
8585
ENABLE_IPv4: "true"
8686
ENABLE_IPv6: "false"
8787
ENABLE_SUBNET_DISCOVERY: "true"
88-
VPC_CNI_VERSION: "v1.19.3"
88+
VPC_CNI_VERSION: "v1.19.4"
8989
NETWORK_POLICY_ENFORCING_MODE: "standard"
9090

9191
# Add env from configMap or from secrets
@@ -231,3 +231,17 @@ eniConfig:
231231
# id: subnet-789
232232
# securityGroups:
233233
# - sg-789
234+
235+
podMonitor:
236+
# Create Prometheus podMonitor
237+
create: false
238+
# Annotations to add to the Prometheus podMonitor
239+
annotations: {}
240+
# Labels to add to the Prometheus podMonitor
241+
labels: {}
242+
# The interval to scrape metrics.
243+
interval: 30s
244+
# The timeout before a metrics scrape fails.
245+
scrapeTimeout: 30s
246+
# relabelings to apply to the podMonitor
247+
relabelings: []

0 commit comments

Comments
 (0)