DEV Community

David Verzolla
David Verzolla

Posted on

Supercharge Kubernetes AWS EKS with Cilium

Unlike traditional service meshes and CNIs, Cilium enhances Kubernetes with:

✅ High-performance networking (eBPF-powered)
✅ Deep observability (metrics, tracing, Hubble)
✅ Zero-trust security (identity-aware policies)
✅ Simplified operations (unifying CNI, service mesh, and gateway)

Proven in Production:

This cluster handles real-world traffic, efficiently managing both north-south (ingress/egress) and east-west (service-to-service) communication at scale.


After installing your AWS EKS Cluster follow the steps below to install Cilium while retaining AWS CNI for IPAM, also replacing the default kube-proxy for unlock advanced features.

# 1. apply the GatewayAPI manifests
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.2.0/standard-install.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/gateway-api/v1.2.0/config/crd/experimental/gateway.networking.k8s.io_tlsroutes.yaml

# 2. delete aws eks kube-proxy
kubectl delete -n kube-system daemonset/kube-proxy

# 3. define AWS_CLUSTER_NAME
export AWS_CLUSTER_NAME="production"

# 4. generate values.yaml for Cilium Helm
cat <<EOF > values.yaml
cni:
  chainingMode: "aws-cni"  # Use AWS CNI chaining mode to work alongside with AWS CNI
  exclusive: false         # Allow Cilium to work alongside AWS CNI

enableIPv4Masquerade: false

routingMode: "native"

endpointRoutes:
  enabled: true

encryption:
  enabled: true
  nodeEncryption: true
  type: "wireguard"
  strictMode:
    enabled: false

hostServices:
  enabled: true

nodePort:
  enabled: true

externalIPs:
  enabled: true

gatewayAPI:
  enabled: true

kubeProxyReplacement: true
k8sServiceHost: $(aws eks describe-cluster --name $AWS_CLUSTER_NAME --query "cluster.endpoint" --output text | sed s/'https:\/\/'//)
k8sServicePort: 443

hubble:
  enabled: true
  ui:
    enabled: true
  relay:
    enabled: true
EOF

# 5. install cilium
helm install -f values.yaml cilium cilium/cilium -n kube-system --version 1.17.2
Enter fullscreen mode Exit fullscreen mode

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Please show some love ❤️ or drop a friendly comment on this post if it was helpful!

Alright