Skip to content

Commit

Permalink
Use hostNetwork for Multi-cluster Controller Pod (#3965)
Browse files Browse the repository at this point in the history
The `hostNetwork` mode is required to run Multi-cluster Controller on
public clouds like with EKS clusters, in which kube-apiserver on the
control plane Node cannot reach Pods in the CNI network.

Signed-off-by: Lan Luo <[email protected]>
  • Loading branch information
luolanzone committed Jul 6, 2022
1 parent b766cdc commit 6070794
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ spec:
- mountPath: /controller_manager_config.yaml
name: antrea-mc-controller-config
subPath: controller_manager_config.yaml
hostNetwork: true
serviceAccountName: antrea-mc-controller
terminationGracePeriodSeconds: 10
volumes:
Expand Down
1 change: 1 addition & 0 deletions multicluster/build/yamls/antrea-multicluster-member.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ spec:
- mountPath: /controller_manager_config.yaml
name: antrea-mc-controller-config
subPath: controller_manager_config.yaml
hostNetwork: true
serviceAccountName: antrea-mc-controller
terminationGracePeriodSeconds: 10
volumes:
Expand Down
1 change: 1 addition & 0 deletions multicluster/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
labels:
component: antrea-mc-controller
spec:
hostNetwork: true
containers:
- command:
image: antrea/antrea-mc-controller:latest
Expand Down

0 comments on commit 6070794

Please sign in to comment.