Skip to content

Commit

Permalink
Apply authentication to agent apiserver endpoint
Browse files Browse the repository at this point in the history
Antrea agent uses apiserver to interact with antctl. However, unlike the
controller, the API endpoint is exposed only locally which limits antctl
to local execution.
Additionally, we would like to reuse the listener for Prometheus metrics,
which would require external access to the API endpoint's metrics path.

Having authentication in a similar way to the controller's implementation
could help here as it will allow external exposure of the API endpoint.
  • Loading branch information
ksamoray committed Apr 22, 2020
1 parent d8bbb7f commit 24442bb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/yamls/antrea-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ spec:
name: antrea-agent
ports:
- containerPort: 10350
hostPort: 10350
name: api
protocol: TCP
readinessProbe:
Expand Down
1 change: 1 addition & 0 deletions build/yamls/antrea-gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ spec:
name: antrea-agent
ports:
- containerPort: 10350
hostPort: 10350
name: api
protocol: TCP
readinessProbe:
Expand Down
1 change: 1 addition & 0 deletions build/yamls/antrea-ipsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ spec:
name: antrea-agent
ports:
- containerPort: 10350
hostPort: 10350
name: api
protocol: TCP
readinessProbe:
Expand Down
1 change: 1 addition & 0 deletions build/yamls/antrea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ spec:
name: antrea-agent
ports:
- containerPort: 10350
hostPort: 10350
name: api
protocol: TCP
readinessProbe:
Expand Down
1 change: 1 addition & 0 deletions build/yamls/base/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ spec:
fieldPath: spec.nodeName
ports:
- containerPort: 10350
hostPort: 10350
name: api
protocol: TCP
livenessProbe:
Expand Down

0 comments on commit 24442bb

Please sign in to comment.