Amazon Elastic Kubernetes Service
Create your EKS Cluster using the Getting Started Guide.
Possible steps are the following:
- Create new IAM role for cluster management.
- Run
aws configure
to authorize yourawscli
with properAWS Access Key ID
andAWS Secret Access Key
. - Create an example cluster:
eksctl create cluster \
--name prod \
--version 1.30 \
--nodegroup-name standard-workers \
--node-type t3.medium \
--nodes 3 \
--nodes-min 3 \
--nodes-max 4
Note
EKS does not use the normal Kubernetes networking since it is incompatible with Amazon VPC networking.Allowing UDP Traffic
For Agones to work correctly, we need to allow UDP traffic to pass through to our EKS cluster worker nodes. To achieve this, we must update the workers’ nodepool SG (Security Group) with the proper rule. A simple way to do that is:
- Log in to the AWS Management Console
- Go to the VPC Dashboard and select Security Groups
- Find the Security Group for the workers nodepool, which will be named something like
eksctl-[cluster-name]-nodegroup-[cluster-name]-workers/SG
- Select Inbound Rules
- Edit Rules to add a new Custom UDP Rule with a 7000-8000 port range and an appropriate Source CIDR range (
0.0.0.0/0
allows all traffic)
Use with custom CNI plugins
To ensure compatibility with custom CNI plugins (such as Calico or Cilium), configure extensions application to use hostNetwork
for proper functionality via the agones.extensions.hostNetwork
Agones Helm variable. Also make sure to set the agones.extensions.http.port
and the agones.extensions.webhooks.port
values as well.
This requirement arises due to the control plane’s inability to reach in-cluster pod endpoints when the data plane operates on a separate network layer (Github Issue).
Reconfiguring the kube-apiserver is not possible as it is an AWS managed component.
Next Steps
- Continue to Install Agones.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified October 9, 2024: Release 1.44.0 (#4013) (24c3673)