Skip to content

Commit 2f8687e

Browse files
authored
Make advertising proxy port (port 80) optional (#107)
eks-pod-identity-agent only bind on 169.254.170.23 and fd00:ec2::23 for port 80. By configuring the portmap cni plugin to exclude those 2 addresses ``` { "type": "portmap", "capabilities": {"portMappings": true}, "snat": true, "conditionsV4": ['!', '-d', '169.254.170.23'], "conditionsV6": ['!', '-d', 'fd00:ec2::23'] } ``` we can have a pod using `hostPort: 80` (let's say ingress-nginx) and eks-pod-identity-agent running on the same node, we just need `advertiseProxyPort: false`.
1 parent 630ebfa commit 2f8687e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

charts/eks-pod-identity-agent/templates/daemonset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ spec:
9191
- {{ $value | quote }}
9292
{{- end }}
9393
ports:
94+
{{- if $top.Values.agent.advertiseProxyPort }}
9495
- containerPort: 80
9596
protocol: TCP
9697
name: proxy
98+
{{- end }}
9799
- containerPort: {{ $top.Values.agent.probePort }}
98100
protocol: TCP
99101
name: probes-port

charts/eks-pod-identity-agent/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ affinity:
105105
agent:
106106
additionalArgs:
107107
"-v": "trace"
108+
advertiseProxyPort: true
108109
command: "['/go-runner', '/eks-pod-identity-agent', 'server']"
109110
livenessEndpoint: /healthz
110111
probePort: 2703

0 commit comments

Comments
 (0)